mfd: Change rdc321x resources flags to IORESOURCE_IO
authorFlorian Fainelli <florian@openwrt.org>
Sat, 15 May 2010 20:58:27 +0000 (22:58 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 27 May 2010 23:37:52 +0000 (01:37 +0200)
commit8deca39e5caf7a20fc3786548dc9bfb7f0ae14b6
treec3401030a2061731570b12dfe1022ede150460a9
parent380c09f6489f1fd773a697e9e2a156c083a34fc5
mfd: Change rdc321x resources flags to IORESOURCE_IO

The rdc321x southbridge PCI device has no MEM PCI resources that we could
pass to mfd_add_devices. Since 33254dd5, mfd_add_device checks for the
mem_base argument that we set to NULL. Changing the resources passed to
our MFD cells from IORESOURCE_MEM to IORESOURCE_IO fixes that. Since we use
those resources as offsets to the PCI configuration space base address of
the southbridge device this is also more adequate.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/gpio/rdc321x-gpio.c
drivers/mfd/rdc321x-southbridge.c
drivers/watchdog/rdc321x_wdt.c