diff options
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/nand/tmio_nand.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/mtd/nand/tmio_nand.c b/drivers/mtd/nand/tmio_nand.c index 11e8371b5683..b6ffad64cda5 100644 --- a/drivers/mtd/nand/tmio_nand.c +++ b/drivers/mtd/nand/tmio_nand.c | |||
@@ -121,9 +121,6 @@ struct tmio_nand { | |||
121 | 121 | ||
122 | #define mtd_to_tmio(m) container_of(m, struct tmio_nand, mtd) | 122 | #define mtd_to_tmio(m) container_of(m, struct tmio_nand, mtd) |
123 | 123 | ||
124 | #ifdef CONFIG_MTD_CMDLINE_PARTS | ||
125 | static const char *part_probes[] = { "cmdlinepart", NULL }; | ||
126 | #endif | ||
127 | 124 | ||
128 | /*--------------------------------------------------------------------------*/ | 125 | /*--------------------------------------------------------------------------*/ |
129 | 126 | ||
@@ -461,9 +458,7 @@ static int tmio_probe(struct platform_device *dev) | |||
461 | goto err_scan; | 458 | goto err_scan; |
462 | } | 459 | } |
463 | /* Register the partitions */ | 460 | /* Register the partitions */ |
464 | #ifdef CONFIG_MTD_CMDLINE_PARTS | 461 | nbparts = parse_mtd_partitions(mtd, NULL, &parts, 0); |
465 | nbparts = parse_mtd_partitions(mtd, part_probes, &parts, 0); | ||
466 | #endif | ||
467 | if (nbparts <= 0 && data) { | 462 | if (nbparts <= 0 && data) { |
468 | parts = data->partition; | 463 | parts = data->partition; |
469 | nbparts = data->num_partitions; | 464 | nbparts = data->num_partitions; |