summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-octeon.c
diff options
context:
space:
mode:
authorNizam Haider <nizamhaider786@gmail.com>2015-11-23 16:23:18 +0100
committerLinus Walleij <linus.walleij@linaro.org>2015-11-30 16:41:26 +0100
commitab128afce4ea8a496fc42553215f6635a14f05c3 (patch)
treee9711799a79e2dbb7dce914692326cdf639eed70 /drivers/gpio/gpio-octeon.c
parentgpio: 104-idio-16: Disable IRQ on device probe (diff)
downloadlinux-ab128afce4ea8a496fc42553215f6635a14f05c3.tar.xz
linux-ab128afce4ea8a496fc42553215f6635a14f05c3.zip
gpio: use dev_get_platdata()
Use the wrapper function for retrieving the platform data instead of accessing dev->platform_data directly. Signed-off-by: Nizam Haider <nijamh@cdac.in> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-octeon.c')
-rw-r--r--drivers/gpio/gpio-octeon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-octeon.c b/drivers/gpio/gpio-octeon.c
index 3c66ce4fe9ed..afbb2417dfbc 100644
--- a/drivers/gpio/gpio-octeon.c
+++ b/drivers/gpio/gpio-octeon.c
@@ -128,7 +128,7 @@ out:
static int octeon_gpio_remove(struct platform_device *pdev)
{
- struct gpio_chip *chip = pdev->dev.platform_data;
+ struct gpio_chip *chip = dev_get_platdata(&pdev->dev);
gpiochip_remove(chip);
return 0;
}