[PATCH] mtd: tmio_nand should call mtd_device_parse_register
Dmitry Eremin-Solenikov
dbaryshkov at gmail.com
Mon Jun 27 08:58:01 EDT 2011
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 at gmail.com>
---
drivers/mtd/nand/tmio_nand.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
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)
--
1.7.5.4
More information about the linux-mtd
mailing list