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