]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mfd: 88pm860x: Move _IO resources out of ioport_ioresource
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 7 Aug 2012 18:42:44 +0000 (19:42 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Oct 2012 20:50:18 +0000 (05:50 +0900)
commitfdb540f319a7a93ada40636c6313bb8e10438ca7
tree944004cd9941cd288b5624aebdad67e005e8c185
parent196d29c060a92d5a2221dd043b8d6903ec211341
mfd: 88pm860x: Move _IO resources out of ioport_ioresource

commit c10c2aab634a3c61c46b98875988b2f53040bc9c upstream.

The removal of mach/io.h from most ARM platforms also set the range of
valid IO ports to be empty for most platforms when previously any 32
bit integer had been valid. This makes it impossible to add IO resources
as the added range is smaller than that of the root resource for IO ports.

Since we're not really using IO memory at all fix this by defining our
own root resource outside the normal tree and make that the parent of
all IO resources. This also ensures we won't conflict with read IO ports
if we ever run on a platform which happens to use them.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Haojian Zhuang <haojian.zhuang@gmail.com>
Tested-by: Haojian Zhuang <haojian.zhuang@gmail.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mfd/88pm860x-core.c