diff options
Diffstat (limited to 'drivers/gpio/gpio-da9055.c')
-rw-r--r-- | drivers/gpio/gpio-da9055.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-da9055.c b/drivers/gpio/gpio-da9055.c index fd6dfe382f13..7ef0820032bd 100644 --- a/drivers/gpio/gpio-da9055.c +++ b/drivers/gpio/gpio-da9055.c | |||
@@ -150,7 +150,7 @@ static int da9055_gpio_probe(struct platform_device *pdev) | |||
150 | return -ENOMEM; | 150 | return -ENOMEM; |
151 | 151 | ||
152 | gpio->da9055 = dev_get_drvdata(pdev->dev.parent); | 152 | gpio->da9055 = dev_get_drvdata(pdev->dev.parent); |
153 | pdata = gpio->da9055->dev->platform_data; | 153 | pdata = dev_get_platdata(gpio->da9055->dev); |
154 | 154 | ||
155 | gpio->gp = reference_gp; | 155 | gpio->gp = reference_gp; |
156 | if (pdata && pdata->gpio_base) | 156 | if (pdata && pdata->gpio_base) |