]> git.karo-electronics.de Git - linux-beck.git/commit
mtd: omap-onenand: pass device_node in platform data
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Fri, 25 Jan 2013 12:23:09 +0000 (09:23 -0300)
committerTony Lindgren <tony@atomide.com>
Fri, 1 Feb 2013 22:10:11 +0000 (14:10 -0800)
commitdc75eb36c3233409728e88acfd6b45a223856289
treeab791a0aad245e940231c2223d7417620cf227c4
parent6797b4fe0e554ce71f47038fd929c9ca929a9f3c
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 <artem.bityutskiy@linux.intel.com>
Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/mtd/onenand/omap2.c
include/linux/platform_data/mtd-onenand-omap2.h