diff options
Diffstat (limited to 'drivers/gpio/gpio-janz-ttl.c')
-rw-r--r-- | drivers/gpio/gpio-janz-ttl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-janz-ttl.c b/drivers/gpio/gpio-janz-ttl.c index 7d0a04169a35..2ecd3a09c743 100644 --- a/drivers/gpio/gpio-janz-ttl.c +++ b/drivers/gpio/gpio-janz-ttl.c | |||
@@ -149,7 +149,7 @@ static int ttl_probe(struct platform_device *pdev) | |||
149 | struct resource *res; | 149 | struct resource *res; |
150 | int ret; | 150 | int ret; |
151 | 151 | ||
152 | pdata = pdev->dev.platform_data; | 152 | pdata = dev_get_platdata(&pdev->dev); |
153 | if (!pdata) { | 153 | if (!pdata) { |
154 | dev_err(dev, "no platform data\n"); | 154 | dev_err(dev, "no platform data\n"); |
155 | ret = -ENXIO; | 155 | ret = -ENXIO; |