Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 355435
b: refs/heads/master
c: ccf04c5
h: refs/heads/master
i:
  355433: bcce2b3
  355431: 291f0cd
v: v3
  • Loading branch information
Daniel Mack authored and Tony Lindgren committed Jan 14, 2013
1 parent 30ae3bf commit 67ed933
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 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: 2f98ca895198c1c6f5c9f418e1bbf84660d9ba4f
refs/heads/master: ccf04c51004d0b973a688a91c879e2d91780d03c
4 changes: 3 additions & 1 deletion trunk/drivers/mtd/nand/omap2.c
Original file line number Diff line number Diff line change
Expand Up @@ -1332,6 +1332,7 @@ static int omap_nand_probe(struct platform_device *pdev)
dma_cap_mask_t mask;
unsigned sig;
struct resource *res;
struct mtd_part_parser_data ppdata = {};

pdata = pdev->dev.platform_data;
if (pdata == NULL) {
Expand Down Expand Up @@ -1557,7 +1558,8 @@ static int omap_nand_probe(struct platform_device *pdev)
goto out_release_mem_region;
}

mtd_device_parse_register(&info->mtd, NULL, NULL, pdata->parts,
ppdata.of_node = pdata->of_node;
mtd_device_parse_register(&info->mtd, NULL, &ppdata, pdata->parts,
pdata->nr_parts);

platform_set_drvdata(pdev, &info->mtd);
Expand Down
4 changes: 3 additions & 1 deletion trunk/include/linux/platform_data/mtd-nand-omap2.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ struct omap_nand_platform_data {
int devsize;
enum omap_ecc ecc_opt;
struct gpmc_nand_regs reg;
};

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

0 comments on commit 67ed933

Please sign in to comment.