diff options
author | Andres Salomon <dilinger@queued.net> | 2011-02-17 22:07:13 -0500 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-03-23 05:41:51 -0400 |
commit | d24f36d352bb9fb72b6611bdca41adbb41cb13ba (patch) | |
tree | 74a1e36f65d48048866d80f65ae856a6e73c6642 /drivers/mfd | |
parent | 5528e40f973ac427c857593ea0f636b6f65058b0 (diff) |
mfd: mfd_cell is now implicitly available to asic3 drivers
No need to explicitly set the cell's platform_data/data_size.
Modify clients to use mfd_get_cell helper function instead of
accessing platform_data directly.
Signed-off-by: Andres Salomon <dilinger@queued.net>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/asic3.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/mfd/asic3.c b/drivers/mfd/asic3.c index c45e6305b26f..bd97639cd83a 100644 --- a/drivers/mfd/asic3.c +++ b/drivers/mfd/asic3.c | |||
@@ -810,9 +810,6 @@ static int __init asic3_mfd_probe(struct platform_device *pdev, | |||
810 | ds1wm_resources[0].start >>= asic->bus_shift; | 810 | ds1wm_resources[0].start >>= asic->bus_shift; |
811 | ds1wm_resources[0].end >>= asic->bus_shift; | 811 | ds1wm_resources[0].end >>= asic->bus_shift; |
812 | 812 | ||
813 | asic3_cell_ds1wm.platform_data = &asic3_cell_ds1wm; | ||
814 | asic3_cell_ds1wm.data_size = sizeof(asic3_cell_ds1wm); | ||
815 | |||
816 | /* MMC */ | 813 | /* MMC */ |
817 | asic->tmio_cnf = ioremap((ASIC3_SD_CONFIG_BASE >> asic->bus_shift) + | 814 | asic->tmio_cnf = ioremap((ASIC3_SD_CONFIG_BASE >> asic->bus_shift) + |
818 | mem_sdio->start, 0x400 >> asic->bus_shift); | 815 | mem_sdio->start, 0x400 >> asic->bus_shift); |
@@ -824,9 +821,6 @@ static int __init asic3_mfd_probe(struct platform_device *pdev, | |||
824 | asic3_mmc_resources[0].start >>= asic->bus_shift; | 821 | asic3_mmc_resources[0].start >>= asic->bus_shift; |
825 | asic3_mmc_resources[0].end >>= asic->bus_shift; | 822 | asic3_mmc_resources[0].end >>= asic->bus_shift; |
826 | 823 | ||
827 | asic3_cell_mmc.platform_data = &asic3_cell_mmc; | ||
828 | asic3_cell_mmc.data_size = sizeof(asic3_cell_mmc); | ||
829 | |||
830 | ret = mfd_add_devices(&pdev->dev, pdev->id, | 824 | ret = mfd_add_devices(&pdev->dev, pdev->id, |
831 | &asic3_cell_ds1wm, 1, mem, asic->irq_base); | 825 | &asic3_cell_ds1wm, 1, mem, asic->irq_base); |
832 | if (ret < 0) | 826 | if (ret < 0) |