diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpio/janz-ttl.c | 3 | ||||
-rw-r--r-- | drivers/mfd/janz-cmodio.c | 3 | ||||
-rw-r--r-- | drivers/net/can/janz-ican3.c | 3 |
3 files changed, 4 insertions, 5 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; |
diff --git a/drivers/mfd/janz-cmodio.c b/drivers/mfd/janz-cmodio.c index fc4191137e90..5c2a06acb77f 100644 --- a/drivers/mfd/janz-cmodio.c +++ b/drivers/mfd/janz-cmodio.c | |||
@@ -86,7 +86,8 @@ static int __devinit cmodio_setup_subdevice(struct cmodio_device *priv, | |||
86 | 86 | ||
87 | /* Add platform data */ | 87 | /* Add platform data */ |
88 | pdata->modno = modno; | 88 | pdata->modno = modno; |
89 | cell->mfd_data = pdata; | 89 | cell->platform_data = pdata; |
90 | cell->pdata_size = sizeof(*pdata); | ||
90 | 91 | ||
91 | /* MODULbus registers -- PCI BAR3 is big-endian MODULbus access */ | 92 | /* MODULbus registers -- PCI BAR3 is big-endian MODULbus access */ |
92 | res->flags = IORESOURCE_MEM; | 93 | res->flags = IORESOURCE_MEM; |
diff --git a/drivers/net/can/janz-ican3.c b/drivers/net/can/janz-ican3.c index 587fba48cdd9..f1942cab35f6 100644 --- a/drivers/net/can/janz-ican3.c +++ b/drivers/net/can/janz-ican3.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 | 18 | ||
20 | #include <linux/netdevice.h> | 19 | #include <linux/netdevice.h> |
21 | #include <linux/can.h> | 20 | #include <linux/can.h> |
@@ -1644,7 +1643,7 @@ static int __devinit ican3_probe(struct platform_device *pdev) | |||
1644 | struct device *dev; | 1643 | struct device *dev; |
1645 | int ret; | 1644 | int ret; |
1646 | 1645 | ||
1647 | pdata = mfd_get_data(pdev); | 1646 | pdata = pdev->dev.platform_data; |
1648 | if (!pdata) | 1647 | if (!pdata) |
1649 | return -ENXIO; | 1648 | return -ENXIO; |
1650 | 1649 | ||