Skip to contentSkip to conversation

mtd: tmio_nand should call mtd_device_parse_register

PATCH New Dmitry Eremin-Solenikov 1 participant 1 message Jun 27, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mtd: tmio_nand should call mtd_device_parse_register

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.

---
 drivers/mtd/nand/tmio_nand.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mtd/nand/tmio_nand.c +1 -1
index d476857..beebd95 100644
@@ -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)
Signature · 1 line
1.7.5.4