diff options
author | Andres Salomon <dilinger@queued.net> | 2011-02-17 19:07:32 -0800 |
---|---|---|
committer | Nicolas Pitre <nicolas.pitre@linaro.org> | 2011-03-25 17:58:40 -0400 |
commit | 79f7ba68272254bf30e7c57be4290c361814aa6f (patch) | |
tree | bc61bf872fc895f452d139a05ea664018d666ee0 /drivers/gpio | |
parent | 9f4a87b3a8bc3b28be0add9ef4963a09db75b5e0 (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>
(cherry picked from commit 46673ed2cdca85afa7c69d126e3778bba2dbd2d5)
Diffstat (limited to 'drivers/gpio')
-rw-r--r-- | drivers/gpio/rdc321x-gpio.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpio/rdc321x-gpio.c b/drivers/gpio/rdc321x-gpio.c index 897e0577e65..a9bda881935 100644 --- a/drivers/gpio/rdc321x-gpio.c +++ b/drivers/gpio/rdc321x-gpio.c @@ -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; |