Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 355441
b: refs/heads/master
c: dc75eb3
h: refs/heads/master
i:
  355439: 17f02d2
v: v3
  • Loading branch information
Ezequiel Garcia authored and Tony Lindgren committed Feb 1, 2013
1 parent c6ebb8e commit b910f93
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 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: 6797b4fe0e554ce71f47038fd929c9ca929a9f3c
refs/heads/master: dc75eb36c3233409728e88acfd6b45a223856289
4 changes: 3 additions & 1 deletion trunk/drivers/mtd/onenand/omap2.c
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,7 @@ static int omap2_onenand_probe(struct platform_device *pdev)
struct onenand_chip *this;
int r;
struct resource *res;
struct mtd_part_parser_data ppdata = {};

pdata = pdev->dev.platform_data;
if (pdata == NULL) {
Expand Down Expand Up @@ -767,7 +768,8 @@ static int omap2_onenand_probe(struct platform_device *pdev)
if ((r = onenand_scan(&c->mtd, 1)) < 0)
goto err_release_regulator;

r = mtd_device_parse_register(&c->mtd, NULL, NULL,
ppdata.of_node = pdata->of_node;
r = mtd_device_parse_register(&c->mtd, NULL, &ppdata,
pdata ? pdata->parts : NULL,
pdata ? pdata->nr_parts : 0);
if (r)
Expand Down
3 changes: 3 additions & 0 deletions trunk/include/linux/platform_data/mtd-onenand-omap2.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,8 @@ struct omap_onenand_platform_data {
u8 flags;
u8 regulator_can_sleep;
u8 skip_initial_unlocking;

/* for passing the partitions */
struct device_node *of_node;
};
#endif

0 comments on commit b910f93

Please sign in to comment.