]> Pileus Git - ~andy/linux/blobdiff - drivers/gpio/gpio-sta2x11.c
drm/radeon: remove generic rptr/wptr functions (v2)
[~andy/linux] / drivers / gpio / gpio-sta2x11.c
index f43ab6aea281d2f20c03608a495a32b4c0ed2d49..f2fb12c18da97616b24b9232ac7ce8d271424115 100644 (file)
@@ -361,7 +361,7 @@ static int gsta_probe(struct platform_device *dev)
        struct gsta_gpio *chip;
        struct resource *res;
 
-       pdev = *(struct pci_dev **)(dev->dev.platform_data);
+       pdev = *(struct pci_dev **)dev_get_platdata(&dev->dev);
        gpio_pdata = dev_get_platdata(&pdev->dev);
 
        if (gpio_pdata == NULL)