aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-ich.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpio/gpio-ich.c')
-rw-r--r--drivers/gpio/gpio-ich.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-ich.c b/drivers/gpio/gpio-ich.c
index 2729e3d2d5bb..814addb62d2c 100644
--- a/drivers/gpio/gpio-ich.c
+++ b/drivers/gpio/gpio-ich.c
@@ -354,7 +354,7 @@ static int ichx_gpio_probe(struct platform_device *pdev)
354{ 354{
355 struct resource *res_base, *res_pm; 355 struct resource *res_base, *res_pm;
356 int err; 356 int err;
357 struct lpc_ich_info *ich_info = pdev->dev.platform_data; 357 struct lpc_ich_info *ich_info = dev_get_platdata(&pdev->dev);
358 358
359 if (!ich_info) 359 if (!ich_info)
360 return -ENODEV; 360 return -ENODEV;