Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 274853
b: refs/heads/master
c: ee0f6a1
h: refs/heads/master
i:
  274851: 4ea9803
v: v3
  • Loading branch information
Dmitry Eremin-Solenikov authored and Artem Bityutskiy committed Sep 11, 2011
1 parent 64bd56c commit 9880823
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 725b75a4acd34e39685483864e824b430e55e2ac
refs/heads/master: ee0f6a15b3f9246ae11e581cb9dae8fb2cc5da5c
11 changes: 2 additions & 9 deletions trunk/drivers/mtd/nand/pxa3xx_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -1133,8 +1133,6 @@ static int pxa3xx_nand_probe(struct platform_device *pdev)
{
struct pxa3xx_nand_platform_data *pdata;
struct pxa3xx_nand_info *info;
struct mtd_partition *parts;
int nr_parts;

pdata = pdev->dev.platform_data;
if (!pdata) {
Expand All @@ -1152,13 +1150,8 @@ static int pxa3xx_nand_probe(struct platform_device *pdev)
return -ENODEV;
}


nr_parts = parse_mtd_partitions(info->mtd, NULL, &parts, 0);

if (nr_parts)
return mtd_device_register(info->mtd, parts, nr_parts);

return mtd_device_register(info->mtd, pdata->parts, pdata->nr_parts);
return mtd_device_parse_register(info->mtd, NULL, 0,
pdata->parts, pdata->nr_parts);
}

#ifdef CONFIG_PM
Expand Down

0 comments on commit 9880823

Please sign in to comment.