]> git.baikalelectronics.ru Git - kernel.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)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 11 Sep 2012 08:15:02 +0000 (10:15 +0200)
commit67648dfe11f5fab73c89d476b26c9de672ecaca5
treea6c3b239a2848f757f1d9d30551dc7d60492b164
parentdc6236af1b7ff2848707cef744fed79ee151edac
mfd: 88pm860x: Move _IO resources out of ioport_ioresource

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>
Cc: stable@vger.kernel.org (v3.4+)
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/88pm860x-core.c