Patchwork mtd: tmio_nand should call mtd_device_parse_register

login
register
mail settings
Submitter Dmitry Eremin-Solenikov
Date June 27, 2011, 12:58 p.m.
Message ID <1309179481-30957-1-git-send-email-dbaryshkov@gmail.com>
Download mbox | patch
Permalink /patch/102157/
State New
Headers show

Comments

Dmitry Eremin-Solenikov - June 27, 2011, 12:58 p.m.
While patching tmio_nand for mtd_device_parse_register(), I've changed
it to correctly pass arguments, but didn't change the function call
itself, so correct that mistake.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
---
 drivers/mtd/nand/tmio_nand.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/drivers/mtd/nand/tmio_nand.c b/drivers/mtd/nand/tmio_nand.c
index d476857..beebd95 100644
--- a/drivers/mtd/nand/tmio_nand.c
+++ b/drivers/mtd/nand/tmio_nand.c
@@ -456,7 +456,7 @@  static int tmio_probe(struct platform_device *dev)
 		goto err_scan;
 	}
 	/* Register the partitions */
-	retval = mtd_device_register(mtd, NULL, 0,
+	retval = mtd_device_parse_register(mtd, NULL, 0,
 			data ? data->partition : NULL,
 			data ? data->num_partitions : 0);
 	if (!retval)