summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-davinci.c
diff options
context:
space:
mode:
authorNizam Haider <nizamhaider786@gmail.com>2015-11-23 20:53:18 +0530
committerLinus Walleij <linus.walleij@linaro.org>2015-11-30 16:41:26 +0100
commitab128afce4ea8a496fc42553215f6635a14f05c3 (patch)
treee9711799a79e2dbb7dce914692326cdf639eed70 /drivers/gpio/gpio-davinci.c
parentfb50cdfeeda868ae2bfe7ec2e0afebff53eca2d5 (diff)
downloadop-kernel-dev-ab128afce4ea8a496fc42553215f6635a14f05c3.zip
op-kernel-dev-ab128afce4ea8a496fc42553215f6635a14f05c3.tar.gz
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-davinci.c')
-rw-r--r--drivers/gpio/gpio-davinci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-davinci.c b/drivers/gpio/gpio-davinci.c
index cf31179..9fd32f7 100644
--- a/drivers/gpio/gpio-davinci.c
+++ b/drivers/gpio/gpio-davinci.c
@@ -149,7 +149,7 @@ davinci_gpio_get_pdata(struct platform_device *pdev)
u32 val;
if (!IS_ENABLED(CONFIG_OF) || !pdev->dev.of_node)
- return pdev->dev.platform_data;
+ return dev_get_platdata(&pdev->dev);
pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL);
if (!pdata)
OpenPOWER on IntegriCloud