diff options
Diffstat (limited to 'drivers/mtd/nand/pxa3xx_nand.c')
-rw-r--r-- | drivers/mtd/nand/pxa3xx_nand.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/mtd/nand/pxa3xx_nand.c b/drivers/mtd/nand/pxa3xx_nand.c index 5d55152162cf..e02fa4f0e3c9 100644 --- a/drivers/mtd/nand/pxa3xx_nand.c +++ b/drivers/mtd/nand/pxa3xx_nand.c | |||
@@ -1320,6 +1320,17 @@ static int pxa3xx_nand_probe(struct platform_device *pdev) | |||
1320 | goto fail_free_irq; | 1320 | goto fail_free_irq; |
1321 | } | 1321 | } |
1322 | 1322 | ||
1323 | if (mtd_has_cmdlinepart()) { | ||
1324 | static const char *probes[] = { "cmdlinepart", NULL }; | ||
1325 | struct mtd_partition *parts; | ||
1326 | int nr_parts; | ||
1327 | |||
1328 | nr_parts = parse_mtd_partitions(mtd, probes, &parts, 0); | ||
1329 | |||
1330 | if (nr_parts) | ||
1331 | return add_mtd_partitions(mtd, parts, nr_parts); | ||
1332 | } | ||
1333 | |||
1323 | return add_mtd_partitions(mtd, pdata->parts, pdata->nr_parts); | 1334 | return add_mtd_partitions(mtd, pdata->parts, pdata->nr_parts); |
1324 | 1335 | ||
1325 | fail_free_irq: | 1336 | fail_free_irq: |