aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAndres Salomon <dilinger@queued.net>2011-02-17 22:07:32 -0500
committerSamuel Ortiz <sameo@linux.intel.com>2011-03-23 05:41:57 -0400
commit46673ed2cdca85afa7c69d126e3778bba2dbd2d5 (patch)
treeefa841bea603b55905766cb2bcbd9a2e7232d940 /drivers
parent6d90bdde4b7b8e0f403bc3641fcddea733bddf77 (diff)
rdc321x-southbridge: Use mfd_data instead of driver_data
Use mfd_data for passing information from mfd drivers to soc clients. The mfd_cell's driver_data field is being phased out. Clients that were using driver_data now access .mfd_data via mfd_get_data(). Signed-off-by: Andres Salomon <dilinger@queued.net> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpio/rdc321x-gpio.c3
-rw-r--r--drivers/mfd/rdc321x-southbridge.c4
-rw-r--r--drivers/watchdog/rdc321x_wdt.c3
3 files changed, 6 insertions, 4 deletions
diff --git a/drivers/gpio/rdc321x-gpio.c b/drivers/gpio/rdc321x-gpio.c
index 897e0577e65e..a9bda881935a 100644
--- a/drivers/gpio/rdc321x-gpio.c
+++ b/drivers/gpio/rdc321x-gpio.c
@@ -27,6 +27,7 @@
27#include <linux/pci.h> 27#include <linux/pci.h>
28#include <linux/gpio.h> 28#include <linux/gpio.h>
29#include <linux/mfd/rdc321x.h> 29#include <linux/mfd/rdc321x.h>
30#include <linux/mfd/core.h>
30#include <linux/slab.h> 31#include <linux/slab.h>
31 32
32struct rdc321x_gpio { 33struct rdc321x_gpio {
@@ -135,7 +136,7 @@ static int __devinit rdc321x_gpio_probe(struct platform_device *pdev)
135 struct rdc321x_gpio *rdc321x_gpio_dev; 136 struct rdc321x_gpio *rdc321x_gpio_dev;
136 struct rdc321x_gpio_pdata *pdata; 137 struct rdc321x_gpio_pdata *pdata;
137 138
138 pdata = platform_get_drvdata(pdev); 139 pdata = mfd_get_data(pdev);
139 if (!pdata) { 140 if (!pdata) {
140 dev_err(&pdev->dev, "no platform data supplied\n"); 141 dev_err(&pdev->dev, "no platform data supplied\n");
141 return -ENODEV; 142 return -ENODEV;
diff --git a/drivers/mfd/rdc321x-southbridge.c b/drivers/mfd/rdc321x-southbridge.c
index 50922975bda3..193c940225b5 100644
--- a/drivers/mfd/rdc321x-southbridge.c
+++ b/drivers/mfd/rdc321x-southbridge.c
@@ -61,12 +61,12 @@ 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 .driver_data = &rdc321x_wdt_pdata, 64 .mfd_data = &rdc321x_wdt_pdata,
65 }, { 65 }, {
66 .name = "rdc321x-gpio", 66 .name = "rdc321x-gpio",
67 .resources = rdc321x_gpio_resources, 67 .resources = rdc321x_gpio_resources,
68 .num_resources = ARRAY_SIZE(rdc321x_gpio_resources), 68 .num_resources = ARRAY_SIZE(rdc321x_gpio_resources),
69 .driver_data = &rdc321x_gpio_pdata, 69 .mfd_data = &rdc321x_gpio_pdata,
70 }, 70 },
71}; 71};
72 72
diff --git a/drivers/watchdog/rdc321x_wdt.c b/drivers/watchdog/rdc321x_wdt.c
index 3939e53f5f98..d8e725082fdc 100644
--- a/drivers/watchdog/rdc321x_wdt.c
+++ b/drivers/watchdog/rdc321x_wdt.c
@@ -37,6 +37,7 @@
37#include <linux/io.h> 37#include <linux/io.h>
38#include <linux/uaccess.h> 38#include <linux/uaccess.h>
39#include <linux/mfd/rdc321x.h> 39#include <linux/mfd/rdc321x.h>
40#include <linux/mfd/core.h>
40 41
41#define RDC_WDT_MASK 0x80000000 /* Mask */ 42#define RDC_WDT_MASK 0x80000000 /* Mask */
42#define RDC_WDT_EN 0x00800000 /* Enable bit */ 43#define RDC_WDT_EN 0x00800000 /* Enable bit */
@@ -231,7 +232,7 @@ static int __devinit rdc321x_wdt_probe(struct platform_device *pdev)
231 struct resource *r; 232 struct resource *r;
232 struct rdc321x_wdt_pdata *pdata; 233 struct rdc321x_wdt_pdata *pdata;
233 234
234 pdata = platform_get_drvdata(pdev); 235 pdata = mfd_get_data(pdev);
235 if (!pdata) { 236 if (!pdata) {
236 dev_err(&pdev->dev, "no platform data supplied\n"); 237 dev_err(&pdev->dev, "no platform data supplied\n");
237 return -ENODEV; 238 return -ENODEV;