mfd: Fix wm831x register range passing for recent ARM updates
commitce7e4e11221dd7fbe82c8ad28d1875b0dfa20de4
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 7 May 2012 09:03:20 +0000 (7 10:03 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 7 May 2012 09:32:08 +0000 (7 11:32 +0200)
tree7dc1d1ae4f2bb61c26616d2f1045457dd62b98a1
parent63745d4068de8ccea3580214c6dbfdca0ec37859
mfd: Fix wm831x register range passing for recent ARM updates

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>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/wm831x-core.c