summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/asic3.c
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2011-04-06 11:38:14 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2011-05-26 19:44:59 +0200
commitec71974f2a3ae052cdbb57a92ce3c3b34ebd7b5d (patch)
tree1158c337a4f29e84715965c2ef4c154634cbfc10 /drivers/mfd/asic3.c
parenta771e36e16e9fdacb2bb8d3b9be50be68f211b82 (diff)
downloadlinux-stable-ec71974f2a3ae052cdbb57a92ce3c3b34ebd7b5d.tar.gz
linux-stable-ec71974f2a3ae052cdbb57a92ce3c3b34ebd7b5d.tar.bz2
linux-stable-ec71974f2a3ae052cdbb57a92ce3c3b34ebd7b5d.zip
mmc: Use device platform_data to retrieve tmio_mmc platform bits
With the addition of the platform device mfd_cell pointer, we can now cleanly pass the sub device drivers platform data pointers through the regular device platform_data one, and get rid of mfd_get_data() Cc: Ian Molton <spyro@f2s.com> Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Cc: Philipp Zabel <philipp.zabel@gmail.com> Acked-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/asic3.c')
-rw-r--r--drivers/mfd/asic3.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mfd/asic3.c b/drivers/mfd/asic3.c
index 0b4d5b23bec9..a26280240bb9 100644
--- a/drivers/mfd/asic3.c
+++ b/drivers/mfd/asic3.c
@@ -777,7 +777,8 @@ static struct mfd_cell asic3_cell_mmc = {
.name = "tmio-mmc",
.enable = asic3_mmc_enable,
.disable = asic3_mmc_disable,
- .mfd_data = &asic3_mmc_data,
+ .platform_data = &asic3_mmc_data,
+ .pdata_size = sizeof(asic3_mmc_data),
.num_resources = ARRAY_SIZE(asic3_mmc_resources),
.resources = asic3_mmc_resources,
};