diff options
Diffstat (limited to 'drivers/gpio/rdc321x-gpio.c')
-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 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 | ||
32 | struct rdc321x_gpio { | 33 | struct 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; |