X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=drivers%2Fgpio%2Fgpio-wm8994.c;h=a53dbdefc7ee147c86255fa795c7bacfc1a42d0d;hb=bf97293eb878df3792d9de7213bd7b82135aea77;hp=ae409fd94af7421e9b2f42ddc4af73eeda6936a9;hpb=3e34c1fc2b51f117045e4a2472572f14ac91df6e;p=firefly-linux-kernel-4.4.55.git diff --git a/drivers/gpio/gpio-wm8994.c b/drivers/gpio/gpio-wm8994.c index ae409fd94af7..a53dbdefc7ee 100644 --- a/drivers/gpio/gpio-wm8994.c +++ b/drivers/gpio/gpio-wm8994.c @@ -248,7 +248,7 @@ static struct gpio_chip template_chip = { static int wm8994_gpio_probe(struct platform_device *pdev) { struct wm8994 *wm8994 = dev_get_drvdata(pdev->dev.parent); - struct wm8994_pdata *pdata = wm8994->dev->platform_data; + struct wm8994_pdata *pdata = dev_get_platdata(wm8994->dev); struct wm8994_gpio *wm8994_gpio; int ret;