aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio/janz-ttl.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpio/janz-ttl.c')
-rw-r--r--drivers/gpio/janz-ttl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpio/janz-ttl.c b/drivers/gpio/janz-ttl.c
index 2514fb075f4a..813ac077e5d7 100644
--- a/drivers/gpio/janz-ttl.c
+++ b/drivers/gpio/janz-ttl.c
@@ -15,7 +15,6 @@
15#include <linux/interrupt.h> 15#include <linux/interrupt.h>
16#include <linux/delay.h> 16#include <linux/delay.h>
17#include <linux/platform_device.h> 17#include <linux/platform_device.h>
18#include <linux/mfd/core.h>
19#include <linux/io.h> 18#include <linux/io.h>
20#include <linux/gpio.h> 19#include <linux/gpio.h>
21#include <linux/slab.h> 20#include <linux/slab.h>
@@ -150,7 +149,7 @@ static int __devinit ttl_probe(struct platform_device *pdev)
150 struct resource *res; 149 struct resource *res;
151 int ret; 150 int ret;
152 151
153 pdata = mfd_get_data(pdev); 152 pdata = pdev->dev.platform_data;
154 if (!pdata) { 153 if (!pdata) {
155 dev_err(dev, "no platform data\n"); 154 dev_err(dev, "no platform data\n");
156 ret = -ENXIO; 155 ret = -ENXIO;