]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit30c548d1ea0ae78f09fe5906cde113b5e58ba1df
tree34be07813f01c5557b97c27f5201d748bd9e6842
parenteac912bf4ad456a666cb373d318dd1118e29c4dc
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