diff options
author | Andres Salomon <dilinger@queued.net> | 2011-02-17 22:07:16 -0500 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-03-23 05:41:52 -0400 |
commit | a23090ada44889322fe39142fb58ebc5794f709c (patch) | |
tree | 3e343d7b9be09a1fad8f1fb6eb8590f8540b1487 /drivers/mfd/t7l66xb.c | |
parent | e46dccff341068d8530610a822965794f70b998f (diff) |
mfd: mfd_cell is now implicitly available to t7166xb 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/t7l66xb.c')
-rw-r--r-- | drivers/mfd/t7l66xb.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/mfd/t7l66xb.c b/drivers/mfd/t7l66xb.c index 9caeb4ac6ea6..b9c1e4c630a8 100644 --- a/drivers/mfd/t7l66xb.c +++ b/drivers/mfd/t7l66xb.c | |||
@@ -384,15 +384,6 @@ static int t7l66xb_probe(struct platform_device *dev) | |||
384 | t7l66xb_attach_irq(dev); | 384 | t7l66xb_attach_irq(dev); |
385 | 385 | ||
386 | t7l66xb_cells[T7L66XB_CELL_NAND].driver_data = pdata->nand_data; | 386 | t7l66xb_cells[T7L66XB_CELL_NAND].driver_data = pdata->nand_data; |
387 | t7l66xb_cells[T7L66XB_CELL_NAND].platform_data = | ||
388 | &t7l66xb_cells[T7L66XB_CELL_NAND]; | ||
389 | t7l66xb_cells[T7L66XB_CELL_NAND].data_size = | ||
390 | sizeof(t7l66xb_cells[T7L66XB_CELL_NAND]); | ||
391 | |||
392 | t7l66xb_cells[T7L66XB_CELL_MMC].platform_data = | ||
393 | &t7l66xb_cells[T7L66XB_CELL_MMC]; | ||
394 | t7l66xb_cells[T7L66XB_CELL_MMC].data_size = | ||
395 | sizeof(t7l66xb_cells[T7L66XB_CELL_MMC]); | ||
396 | 387 | ||
397 | ret = mfd_add_devices(&dev->dev, dev->id, | 388 | ret = mfd_add_devices(&dev->dev, dev->id, |
398 | t7l66xb_cells, ARRAY_SIZE(t7l66xb_cells), | 389 | t7l66xb_cells, ARRAY_SIZE(t7l66xb_cells), |