]> git.baikalelectronics.ru Git - kernel.git/commit
OF: MTD: make plat_nand loadable from DT
authorJohn Crispin <blogic@openwrt.org>
Mon, 30 Apr 2012 17:30:46 +0000 (19:30 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 14 May 2012 04:16:35 +0000 (23:16 -0500)
commit4283e20923ea80611713616858f856b28e79a0fa
tree8e3d0305aa91c69337c1af7eebf4e3f604b55e18
parent82c588974ac0c04233ddacd35e648f7dd949ee2e
OF: MTD: make plat_nand loadable from DT

This patch sets the of_match_table field inside plat_nand's platform_driver.
We also add a struct mtd_part_parser_data pointer to make sure of_part parsing
works.

If an arch wants to support plat_nand via DT it needs to setup the
platform_nand_data and hook it into the platform_device.

Signed-off-by: John Crispin <blogic@openwrt.org>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/plat_nand.c