]> git.karo-electronics.de Git - mv-sheeva.git/commit
mtd: nand: ams-delta: drop omap_read/write, use ioremap
authorJanusz Krzysztofik <jkrzyszt@tis.icnet.pl>
Wed, 15 Dec 2010 14:43:44 +0000 (15:43 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 6 Jan 2011 15:28:22 +0000 (15:28 +0000)
commiteaca491f75af5afa9265a6bdfcbbfff6837634ab
tree1dd373ecd237b464cc2ccb252594b84fca5f2ccc
parentdcf12463c3416b4a8fc84545233424df0a91e406
mtd: nand: ams-delta: drop omap_read/write, use ioremap

There is a common requirement for not using OMAP specific omap_readw() /
omap_writew() function calls in drivers/, but replace them with
readw() / writew() on ioremap()ped addresses passed from arch/ instead.

The patch implements this idea for the Amstrad Delta NAND driver. To be
able to use the modified driver, the board file is updated with the
platform device I/O resource declaration, which is passed from there.

Created and tested against linux-2.6.37-rc5, on top of recent patch
'MTD: NAND: ams-delta: convert to platform driver'.

Signed-off-by: Janusz Krzysztofik <jkrzyszt@tis.icnet.pl>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
arch/arm/mach-omap1/board-ams-delta.c
drivers/mtd/nand/ams-delta.c