diff options
author | Jiri Kosina <jkosina@suse.cz> | 2011-04-26 04:22:15 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2011-04-26 04:22:59 -0400 |
commit | 07f9479a40cc778bc1462ada11f95b01360ae4ff (patch) | |
tree | 0676cf38df3844004bb3ebfd99dfa67a4a8998f5 /drivers/gpio/janz-ttl.c | |
parent | 9d5e6bdb3013acfb311ab407eeca0b6a6a3dedbf (diff) | |
parent | cd2e49e90f1cae7726c9a2c54488d881d7f1cd1c (diff) |
Merge branch 'master' into for-next
Fast-forwarded to current state of Linus' tree as there are patches to be
applied for files that didn't exist on the old branch.
Diffstat (limited to 'drivers/gpio/janz-ttl.c')
-rw-r--r-- | drivers/gpio/janz-ttl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpio/janz-ttl.c b/drivers/gpio/janz-ttl.c index 813ac077e5d7..2514fb075f4a 100644 --- a/drivers/gpio/janz-ttl.c +++ b/drivers/gpio/janz-ttl.c | |||
@@ -15,6 +15,7 @@ | |||
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> | ||
18 | #include <linux/io.h> | 19 | #include <linux/io.h> |
19 | #include <linux/gpio.h> | 20 | #include <linux/gpio.h> |
20 | #include <linux/slab.h> | 21 | #include <linux/slab.h> |
@@ -149,7 +150,7 @@ static int __devinit ttl_probe(struct platform_device *pdev) | |||
149 | struct resource *res; | 150 | struct resource *res; |
150 | int ret; | 151 | int ret; |
151 | 152 | ||
152 | pdata = pdev->dev.platform_data; | 153 | pdata = mfd_get_data(pdev); |
153 | if (!pdata) { | 154 | if (!pdata) { |
154 | dev_err(dev, "no platform data\n"); | 155 | dev_err(dev, "no platform data\n"); |
155 | ret = -ENXIO; | 156 | ret = -ENXIO; |