]> rtime.felk.cvut.cz Git - linux-imx.git/commit
mtd: omap-nand: pass device_node in platform data
authorDaniel Mack <zonque@gmail.com>
Fri, 14 Dec 2012 10:36:41 +0000 (11:36 +0100)
committerTony Lindgren <tony@atomide.com>
Mon, 14 Jan 2013 17:55:19 +0000 (09:55 -0800)
commitccf04c51004d0b973a688a91c879e2d91780d03c
tree62ab037faecba41ce9a36c1fa2e62de341ac1c44
parent2f98ca895198c1c6f5c9f418e1bbf84660d9ba4f
mtd: omap-nand: 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.

Signed-off-by: Daniel Mack <zonque@gmail.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Artem Bityutskiy <dedekind1@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/mtd/nand/omap2.c
include/linux/platform_data/mtd-nand-omap2.h