Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 195934
b: refs/heads/master
c: bff3c10
h: refs/heads/master
v: v3
  • Loading branch information
Marc Kleine-Budde authored and David Woodhouse committed May 10, 2010
1 parent b8072dd commit 2225773
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1dd2a092af8ed53eb744c5b9993fa775616cf699
refs/heads/master: bff3c10d369440bc87ba612b45ba2777d2bf017f
11 changes: 11 additions & 0 deletions trunk/drivers/mtd/nand/pxa3xx_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -1319,6 +1319,17 @@ static int pxa3xx_nand_probe(struct platform_device *pdev)
goto fail_free_irq;
}

if (mtd_has_cmdlinepart()) {
static const char *probes[] = { "cmdlinepart", NULL };
struct mtd_partition *parts;
int nr_parts;

nr_parts = parse_mtd_partitions(mtd, probes, &parts, 0);

if (nr_parts)
return add_mtd_partitions(mtd, parts, nr_parts);
}

return add_mtd_partitions(mtd, pdata->parts, pdata->nr_parts);

fail_free_irq:
Expand Down

0 comments on commit 2225773

Please sign in to comment.