]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: onenand: make onenand/generic.c more generic
authorMagnus Damm <damm@igel.co.jp>
Fri, 18 Sep 2009 19:51:44 +0000 (12:51 -0700)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sat, 19 Sep 2009 18:07:50 +0000 (11:07 -0700)
commitf05246723d82a1e5bc37a244a27a3a909e202568
tree014ff1122c3dc6551e67bb65bbce6f3281c1fc2b
parentcc56df91b3a795061ab10e9eb626e1371c1c0055
mtd: onenand: make onenand/generic.c more generic

Remove the ARM dependency from the generic "onenand" platform device
driver.  This change makes the driver useful for other architectures as
well.  Needed for the SuperH kfr2r09 board.

Apart from the obvious Kconfig bits, the most important change is the move
away from ARM specific includes and platform data.  Together with this
change the only in-tree board code gets an update, and the driver name is
also changed gracefully break potential out of tree drivers.

The driver is also updated to allow NULL as platform data together with a
few changes to make use of resource_size() and dev_name().

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: Tony Lindgren <tony@atomide.com>
Cc: Kyungmin Park <kmpark@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
arch/arm/mach-omap2/board-apollon.c
drivers/mtd/onenand/Kconfig
drivers/mtd/onenand/generic.c
include/linux/mtd/onenand.h