summaryrefslogtreecommitdiff
path: root/drivers/gpio/janz-ttl.c
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2011-04-06 18:02:25 +0400
committerSamuel Ortiz <sameo@linux.intel.com>2011-05-26 21:45:08 +0400
commit3d2bdf759f48f9b0a0ffcd798f3e9a3228d6455d (patch)
tree5440763147e844a5e5f83926fe717bef3b7d6fee /drivers/gpio/janz-ttl.c
parentc8a03c96b61bd03a3603bfe5381848c0b40e99be (diff)
downloadlinux-3d2bdf759f48f9b0a0ffcd798f3e9a3228d6455d.tar.xz
mfd: Use mfd cell platform_data for janz cells platform bits
With the addition of a platform device mfd_cell pointer, MFD drivers can go back to passing platform data back to their sub drivers. This allows for an mfd_cell->mfd_data removal and thus keep the sub drivers MFD agnostic. This is mostly needed for non MFD aware sub drivers. Cc: Ira W. Snyder <iws@ovro.caltech.edu> Cc: Wolfgang Grandegger <wg@grandegger.com> Cc: Grant Likely <grant.likely@secretlab.ca> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
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 @@
#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>
@@ -150,7 +149,7 @@ static int __devinit ttl_probe(struct platform_device *pdev)
struct resource *res;
int ret;
- pdata = mfd_get_data(pdev);
+ pdata = pdev->dev.platform_data;
if (!pdata) {
dev_err(dev, "no platform data\n");
ret = -ENXIO;