summaryrefslogtreecommitdiff
path: root/drivers/gpio
diff options
context:
space:
mode:
authorAndres Salomon <dilinger@queued.net>2011-02-18 03:07:22 (GMT)
committerSamuel Ortiz <sameo@linux.intel.com>2011-03-23 09:41:54 (GMT)
commit8615e4cba1d3a0f15b9a4da9f32f8fbc3488fa54 (patch)
tree44040fd3c5c8b1f9961a2db1a22f2b1e2bf92b18 /drivers/gpio
parent6a3521ad3db45066d4ca38652dd0b57ea2fd0a30 (diff)
downloadlinux-8615e4cba1d3a0f15b9a4da9f32f8fbc3488fa54.tar.xz
mfd: mfd_cell is now implicitly available to janz drivers
The cell's platform_data is now accessed with a helper function; change clients to use that, and remove the now-unused data_size. Signed-off-by: Andres Salomon <dilinger@queued.net> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/janz-ttl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpio/janz-ttl.c b/drivers/gpio/janz-ttl.c
index 813ac07..2514fb0 100644
--- a/drivers/gpio/janz-ttl.c
+++ b/drivers/gpio/janz-ttl.c
@@ -15,6 +15,7 @@
#include <linux/interrupt.h>
#include <linux/delay.h>
#include <linux/platform_device.h>
+#include <linux/mfd/core.h>
#include <linux/io.h>
#include <linux/gpio.h>
#include <linux/slab.h>
@@ -149,7 +150,7 @@ static int __devinit ttl_probe(struct platform_device *pdev)
struct resource *res;
int ret;
- pdata = pdev->dev.platform_data;
+ pdata = mfd_get_data(pdev);
if (!pdata) {
dev_err(dev, "no platform data\n");
ret = -ENXIO;