diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2011-04-06 07:21:01 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-05-26 13:45:06 -0400 |
commit | 9abd768a8d470d58071e30c57d1fa4a7090518bc (patch) | |
tree | 5c449234f2c7a958af3660432eb6be5d9fcc2c87 /drivers/mfd | |
parent | 3271d382c3ffe61ef3d059ef47e635dbe031030e (diff) |
mfd: Use mfd cell platform_data for rdc321x cells platform bits
With the addition of a platform device mfd_cell pointer, MFD drivers
can go back to passing platform data back to their sub drivers.
This allows for an mfd_cell->mfd_data removal and thus keep the
sub drivers MFD agnostic. This is mostly needed for non MFD aware
sub drivers.
Cc: Grant Likely <grant.likely@secretlab.ca>
Cc: Wim Van Sebroeck <wim@iguana.be>
Cc: Florian Fainelli <florian@openwrt.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/rdc321x-southbridge.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/mfd/rdc321x-southbridge.c b/drivers/mfd/rdc321x-southbridge.c index 10dbe6374a89..809bd4a61089 100644 --- a/drivers/mfd/rdc321x-southbridge.c +++ b/drivers/mfd/rdc321x-southbridge.c | |||
@@ -61,12 +61,14 @@ static struct mfd_cell rdc321x_sb_cells[] = { | |||
61 | .name = "rdc321x-wdt", | 61 | .name = "rdc321x-wdt", |
62 | .resources = rdc321x_wdt_resource, | 62 | .resources = rdc321x_wdt_resource, |
63 | .num_resources = ARRAY_SIZE(rdc321x_wdt_resource), | 63 | .num_resources = ARRAY_SIZE(rdc321x_wdt_resource), |
64 | .mfd_data = &rdc321x_wdt_pdata, | 64 | .platform_data = &rdc321x_wdt_pdata, |
65 | .pdata_size = sizeof(rdc321x_wdt_pdata), | ||
65 | }, { | 66 | }, { |
66 | .name = "rdc321x-gpio", | 67 | .name = "rdc321x-gpio", |
67 | .resources = rdc321x_gpio_resources, | 68 | .resources = rdc321x_gpio_resources, |
68 | .num_resources = ARRAY_SIZE(rdc321x_gpio_resources), | 69 | .num_resources = ARRAY_SIZE(rdc321x_gpio_resources), |
69 | .mfd_data = &rdc321x_gpio_pdata, | 70 | .platform_data = &rdc321x_gpio_pdata, |
71 | .pdata_size = sizeof(rdc321x_gpio_pdata), | ||
70 | }, | 72 | }, |
71 | }; | 73 | }; |
72 | 74 | ||