Since 'cmdline, NULL' is now a default for parse_mtd_partitions, don't specify
this in every driver, instead pass NULL to force parse_mtd_partitions
to use default.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
-#ifdef CONFIG_MTD_CMDLINE_PARTS
-const char *part_probes[] = { "cmdlinepart", NULL };
-#endif
/**
* struct fsmc_nand_data - structure for FSMC NAND device state
/**
* struct fsmc_nand_data - structure for FSMC NAND device state
* platform data,
* default partition information present in driver.
*/
* platform data,
* default partition information present in driver.
*/
-#ifdef CONFIG_MTD_CMDLINE_PARTS
- * Check if partition info passed via command line
+ * Check for partition info passed
*/
host->mtd.name = "nand";
*/
host->mtd.name = "nand";
- host->nr_partitions = parse_mtd_partitions(&host->mtd, part_probes,
+ host->nr_partitions = parse_mtd_partitions(&host->mtd, NULL,
&host->partitions, 0);
if (host->nr_partitions <= 0) {
&host->partitions, 0);
if (host->nr_partitions <= 0) {
/*
* Check if partition info passed via command line
*/
/*
* Check if partition info passed via command line
*/
-#ifdef CONFIG_MTD_CMDLINE_PARTS
ret = mtd_device_register(&host->mtd, host->partitions,
host->nr_partitions);
ret = mtd_device_register(&host->mtd, host->partitions,
host->nr_partitions);