rdc321x-southbridge: Use mfd_data instead of driver_data
authorAndres Salomon <dilinger@queued.net>
Fri, 18 Feb 2011 03:07:32 +0000 (19:07 -0800)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 23 Mar 2011 09:41:57 +0000 (10:41 +0100)
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>
drivers/gpio/rdc321x-gpio.c
drivers/mfd/rdc321x-southbridge.c
drivers/watchdog/rdc321x_wdt.c

index 897e0577e65e0fd425f18edb00512ee414566a64..a9bda881935a82907ff0c5c753efee59b924cdf5 100644 (file)
@@ -27,6 +27,7 @@
 #include <linux/pci.h>
 #include <linux/gpio.h>
 #include <linux/mfd/rdc321x.h>
+#include <linux/mfd/core.h>
 #include <linux/slab.h>
 
 struct rdc321x_gpio {
@@ -135,7 +136,7 @@ static int __devinit rdc321x_gpio_probe(struct platform_device *pdev)
        struct rdc321x_gpio *rdc321x_gpio_dev;
        struct rdc321x_gpio_pdata *pdata;
 
-       pdata = platform_get_drvdata(pdev);
+       pdata = mfd_get_data(pdev);
        if (!pdata) {
                dev_err(&pdev->dev, "no platform data supplied\n");
                return -ENODEV;
index 50922975bda381d520072a02273eb5a0477d5806..193c940225b5bc45bec2fe3a9ce7204e79ef464d 100644 (file)
@@ -61,12 +61,12 @@ static struct mfd_cell rdc321x_sb_cells[] = {
                .name           = "rdc321x-wdt",
                .resources      = rdc321x_wdt_resource,
                .num_resources  = ARRAY_SIZE(rdc321x_wdt_resource),
-               .driver_data    = &rdc321x_wdt_pdata,
+               .mfd_data       = &rdc321x_wdt_pdata,
        }, {
                .name           = "rdc321x-gpio",
                .resources      = rdc321x_gpio_resources,
                .num_resources  = ARRAY_SIZE(rdc321x_gpio_resources),
-               .driver_data    = &rdc321x_gpio_pdata,
+               .mfd_data       = &rdc321x_gpio_pdata,
        },
 };
 
index 3939e53f5f981d327ff344d522ab59f4df43238b..d8e725082fdc1c103d66f91eab6694e65af18c06 100644 (file)
@@ -37,6 +37,7 @@
 #include <linux/io.h>
 #include <linux/uaccess.h>
 #include <linux/mfd/rdc321x.h>
+#include <linux/mfd/core.h>
 
 #define RDC_WDT_MASK   0x80000000 /* Mask */
 #define RDC_WDT_EN     0x00800000 /* Enable bit */
@@ -231,7 +232,7 @@ static int __devinit rdc321x_wdt_probe(struct platform_device *pdev)
        struct resource *r;
        struct rdc321x_wdt_pdata *pdata;
 
-       pdata = platform_get_drvdata(pdev);
+       pdata = mfd_get_data(pdev);
        if (!pdata) {
                dev_err(&pdev->dev, "no platform data supplied\n");
                return -ENODEV;
This page took 0.026281 seconds and 5 git commands to generate.