summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-f7188x.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-f7188x.c
parentfb50cdfeeda868ae2bfe7ec2e0afebff53eca2d5 (diff)
downloadlinux-ab128afce4ea8a496fc42553215f6635a14f05c3.tar.bz2
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-f7188x.c')
-rw-r--r--drivers/gpio/gpio-f7188x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-f7188x.c b/drivers/gpio/gpio-f7188x.c
index 1734e4fbd2b5..2be7337cf4ae 100644
--- a/drivers/gpio/gpio-f7188x.c
+++ b/drivers/gpio/gpio-f7188x.c
@@ -298,7 +298,7 @@ static int f7188x_gpio_probe(struct platform_device *pdev)
{
int err;
int i;
- struct f7188x_sio *sio = pdev->dev.platform_data;
+ struct f7188x_sio *sio = dev_get_platdata(&pdev->dev);
struct f7188x_gpio_data *data;
data = devm_kzalloc(&pdev->dev, sizeof(*data), GFP_KERNEL);