diff options
author | Andres Salomon <dilinger@queued.net> | 2011-02-17 22:07:14 -0500 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-03-23 05:41:52 -0400 |
commit | 07ae2a08deb141f22d7974615bd3006e8dce3883 (patch) | |
tree | 478d2bd8a6999b8cc704d413660a9fc70167f7fb | |
parent | d24f36d352bb9fb72b6611bdca41adbb41cb13ba (diff) |
mfd: mfd_cell is now implicitly available to htc-pasic3 drivers
No need to explicitly set the cell's platform_data/data_size.
Signed-off-by: Andres Salomon <dilinger@queued.net>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
-rw-r--r-- | drivers/mfd/htc-pasic3.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/mfd/htc-pasic3.c b/drivers/mfd/htc-pasic3.c index 7bc752272dc1..079d39665549 100644 --- a/drivers/mfd/htc-pasic3.c +++ b/drivers/mfd/htc-pasic3.c | |||
@@ -165,8 +165,6 @@ static int __init pasic3_probe(struct platform_device *pdev) | |||
165 | ds1wm_pdata.clock_rate = pdata->clock_rate; | 165 | ds1wm_pdata.clock_rate = pdata->clock_rate; |
166 | /* the first 5 PASIC3 registers control the DS1WM */ | 166 | /* the first 5 PASIC3 registers control the DS1WM */ |
167 | ds1wm_resources[0].end = (5 << asic->bus_shift) - 1; | 167 | ds1wm_resources[0].end = (5 << asic->bus_shift) - 1; |
168 | ds1wm_cell.platform_data = &ds1wm_cell; | ||
169 | ds1wm_cell.data_size = sizeof(ds1wm_cell); | ||
170 | ret = mfd_add_devices(&pdev->dev, pdev->id, | 168 | ret = mfd_add_devices(&pdev->dev, pdev->id, |
171 | &ds1wm_cell, 1, r, irq); | 169 | &ds1wm_cell, 1, r, irq); |
172 | if (ret < 0) | 170 | if (ret < 0) |
@@ -175,8 +173,6 @@ static int __init pasic3_probe(struct platform_device *pdev) | |||
175 | 173 | ||
176 | if (pdata && pdata->led_pdata) { | 174 | if (pdata && pdata->led_pdata) { |
177 | led_cell.driver_data = pdata->led_pdata; | 175 | led_cell.driver_data = pdata->led_pdata; |
178 | led_cell.platform_data = &led_cell; | ||
179 | led_cell.data_size = sizeof(ds1wm_cell); | ||
180 | ret = mfd_add_devices(&pdev->dev, pdev->id, &led_cell, 1, r, 0); | 176 | ret = mfd_add_devices(&pdev->dev, pdev->id, &led_cell, 1, r, 0); |
181 | if (ret < 0) | 177 | if (ret < 0) |
182 | dev_warn(dev, "failed to register LED device\n"); | 178 | dev_warn(dev, "failed to register LED device\n"); |