mtd: maps: gpio-addr-flash: fix warnings and make more portable
authorMike Frysinger <vapier@gentoo.org>
Sat, 16 Oct 2010 22:31:14 +0000 (18:31 -0400)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 25 Oct 2010 00:16:17 +0000 (01:16 +0100)
commitebd71e3a4861849054751779ff5ccd3fb29a1e0a
tree34be07813f01c5557b97c27f5201d748bd9e6842
parent5954c47c2194abcdeeae5f752e64b7c75770dbd3
mtd: maps: gpio-addr-flash: fix warnings and make more portable

As reported on lkml, building this module for HIMEM systems spews warnings
about mismatch in pointer types.  Further, we need to use ioremap() in order
to properly access the flash memory on most systems rather than just doing
it directly.

Reported-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/maps/gpio-addr-flash.c