aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-kempld.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpio/gpio-kempld.c')
-rw-r--r--drivers/gpio/gpio-kempld.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-kempld.c b/drivers/gpio/gpio-kempld.c
index 1bdc3a2e40dc..3f5b20038af1 100644
--- a/drivers/gpio/gpio-kempld.c
+++ b/drivers/gpio/gpio-kempld.c
@@ -150,7 +150,7 @@ static int kempld_gpio_probe(struct platform_device *pdev)
150{ 150{
151 struct device *dev = &pdev->dev; 151 struct device *dev = &pdev->dev;
152 struct kempld_device_data *pld = dev_get_drvdata(dev->parent); 152 struct kempld_device_data *pld = dev_get_drvdata(dev->parent);
153 struct kempld_platform_data *pdata = pld->dev->platform_data; 153 struct kempld_platform_data *pdata = dev_get_platdata(pld->dev);
154 struct kempld_gpio_data *gpio; 154 struct kempld_gpio_data *gpio;
155 struct gpio_chip *chip; 155 struct gpio_chip *chip;
156 int ret; 156 int ret;