Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 274849
b: refs/heads/master
c: 69c85f1
h: refs/heads/master
i:
  274847: a4cbcf2
v: v3
  • Loading branch information
Dmitry Eremin-Solenikov authored and Artem Bityutskiy committed Sep 11, 2011
1 parent f07ff67 commit cdf6c56
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 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: d4ed8f1222d5ada9da402cf312dc64e39c705da9
refs/heads/master: 69c85f1f66888e0ad532f8bb37db81ca1e7e56f0
10 changes: 2 additions & 8 deletions trunk/drivers/mtd/nand/omap2.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ struct omap_nand_info {
struct nand_hw_control controller;
struct omap_nand_platform_data *pdata;
struct mtd_info mtd;
struct mtd_partition *parts;
struct nand_chip nand;
struct platform_device *pdev;

Expand Down Expand Up @@ -1101,13 +1100,8 @@ static int __devinit omap_nand_probe(struct platform_device *pdev)
goto out_release_mem_region;
}

err = parse_mtd_partitions(&info->mtd, NULL, &info->parts, 0);
if (err > 0)
mtd_device_register(&info->mtd, info->parts, err);
else if (pdata->parts)
mtd_device_register(&info->mtd, pdata->parts, pdata->nr_parts);
else
mtd_device_register(&info->mtd, NULL, 0);
mtd_device_parse_register(&info->mtd, NULL, 0,
pdata->parts, pdata->nr_parts);

platform_set_drvdata(pdev, &info->mtd);

Expand Down

0 comments on commit cdf6c56

Please sign in to comment.