diff options
Diffstat (limited to 'drivers/gpio/gpio-sta2x11.c')
-rw-r--r-- | drivers/gpio/gpio-sta2x11.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-sta2x11.c b/drivers/gpio/gpio-sta2x11.c index f43ab6aea281..f2fb12c18da9 100644 --- a/drivers/gpio/gpio-sta2x11.c +++ b/drivers/gpio/gpio-sta2x11.c | |||
@@ -361,7 +361,7 @@ static int gsta_probe(struct platform_device *dev) | |||
361 | struct gsta_gpio *chip; | 361 | struct gsta_gpio *chip; |
362 | struct resource *res; | 362 | struct resource *res; |
363 | 363 | ||
364 | pdev = *(struct pci_dev **)(dev->dev.platform_data); | 364 | pdev = *(struct pci_dev **)dev_get_platdata(&dev->dev); |
365 | gpio_pdata = dev_get_platdata(&pdev->dev); | 365 | gpio_pdata = dev_get_platdata(&pdev->dev); |
366 | 366 | ||
367 | if (gpio_pdata == NULL) | 367 | if (gpio_pdata == NULL) |