diff options
author | Nizam Haider <nizamhaider786@gmail.com> | 2015-11-23 18:23:18 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2015-11-30 18:41:26 +0300 |
commit | ab128afce4ea8a496fc42553215f6635a14f05c3 (patch) | |
tree | e9711799a79e2dbb7dce914692326cdf639eed70 /drivers/gpio/gpio-ath79.c | |
parent | fb50cdfeeda868ae2bfe7ec2e0afebff53eca2d5 (diff) | |
download | linux-ab128afce4ea8a496fc42553215f6635a14f05c3.tar.xz |
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-ath79.c')
-rw-r--r-- | drivers/gpio/gpio-ath79.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-ath79.c b/drivers/gpio/gpio-ath79.c index b1410226dc95..e7e38af11ec9 100644 --- a/drivers/gpio/gpio-ath79.c +++ b/drivers/gpio/gpio-ath79.c @@ -138,7 +138,7 @@ static const struct of_device_id ath79_gpio_of_match[] = { static int ath79_gpio_probe(struct platform_device *pdev) { - struct ath79_gpio_platform_data *pdata = pdev->dev.platform_data; + struct ath79_gpio_platform_data *pdata = dev_get_platdata(&pdev->dev); struct device_node *np = pdev->dev.of_node; struct ath79_gpio_ctrl *ctrl; struct resource *res; |