diff options
| author | Ezequiel Garcia <[email protected]> | 2013-01-25 09:23:09 -0300 |
|---|---|---|
| committer | Tony Lindgren <[email protected]> | 2013-02-01 14:10:11 -0800 |
| commit | dc75eb36c3233409728e88acfd6b45a223856289 (patch) | |
| tree | ab791a0aad245e940231c2223d7417620cf227c4 /include/linux/platform_data | |
| parent | 6797b4fe0e554ce71f47038fd929c9ca929a9f3c (diff) | |
mtd: omap-onenand: pass device_node in platform data
Pass an optional device_node pointer in the platform data,
which in turn will be put into a mtd_part_parser_data.
This way, code that sets up the platform devices can pass
along the node from DT so that the partitions can be parsed.
For non-DT boards, this change has no effect.
Acked-by: Artem Bityutskiy <[email protected]>
Signed-off-by: Ezequiel Garcia <[email protected]>
Signed-off-by: Tony Lindgren <[email protected]>
Diffstat (limited to 'include/linux/platform_data')
| -rw-r--r-- | include/linux/platform_data/mtd-onenand-omap2.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/platform_data/mtd-onenand-omap2.h b/include/linux/platform_data/mtd-onenand-omap2.h index 685af7e8b120..e9a9fb188f97 100644 --- a/include/linux/platform_data/mtd-onenand-omap2.h +++ b/include/linux/platform_data/mtd-onenand-omap2.h @@ -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 |