aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-da9052.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpio/gpio-da9052.c')
-rw-r--r--drivers/gpio/gpio-da9052.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-da9052.c b/drivers/gpio/gpio-da9052.c
index 29b11e9b6a78..9b77dc05d4ad 100644
--- a/drivers/gpio/gpio-da9052.c
+++ b/drivers/gpio/gpio-da9052.c
@@ -216,7 +216,7 @@ static int da9052_gpio_probe(struct platform_device *pdev)
216 return -ENOMEM; 216 return -ENOMEM;
217 217
218 gpio->da9052 = dev_get_drvdata(pdev->dev.parent); 218 gpio->da9052 = dev_get_drvdata(pdev->dev.parent);
219 pdata = gpio->da9052->dev->platform_data; 219 pdata = dev_get_platdata(gpio->da9052->dev);
220 220
221 gpio->gp = reference_gp; 221 gpio->gp = reference_gp;
222 if (pdata && pdata->gpio_base) 222 if (pdata && pdata->gpio_base)