diff options
author | Andres Salomon <dilinger@queued.net> | 2011-02-17 22:07:19 -0500 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-03-23 05:41:53 -0400 |
commit | 7d76ac15ad1a8d8b1a7b7b4f6be7a9d8dfd225bf (patch) | |
tree | 602bce48b9e86b26c44890dce8a0b9c698ee047c /drivers/mfd/tc6393xb.c | |
parent | 410b09172787a930753fa5ed904d820e3a9d7a1f (diff) |
mfd: mfd_cell is now implicitly available to tc6393xb 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/tc6393xb.c')
-rw-r--r-- | drivers/mfd/tc6393xb.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/drivers/mfd/tc6393xb.c b/drivers/mfd/tc6393xb.c index 9a238633a54d..a71ff5c88b59 100644 --- a/drivers/mfd/tc6393xb.c +++ b/drivers/mfd/tc6393xb.c | |||
@@ -694,26 +694,7 @@ static int __devinit tc6393xb_probe(struct platform_device *dev) | |||
694 | } | 694 | } |
695 | 695 | ||
696 | tc6393xb_cells[TC6393XB_CELL_NAND].driver_data = tcpd->nand_data; | 696 | tc6393xb_cells[TC6393XB_CELL_NAND].driver_data = tcpd->nand_data; |
697 | tc6393xb_cells[TC6393XB_CELL_NAND].platform_data = | ||
698 | &tc6393xb_cells[TC6393XB_CELL_NAND]; | ||
699 | tc6393xb_cells[TC6393XB_CELL_NAND].data_size = | ||
700 | sizeof(tc6393xb_cells[TC6393XB_CELL_NAND]); | ||
701 | |||
702 | tc6393xb_cells[TC6393XB_CELL_MMC].platform_data = | ||
703 | &tc6393xb_cells[TC6393XB_CELL_MMC]; | ||
704 | tc6393xb_cells[TC6393XB_CELL_MMC].data_size = | ||
705 | sizeof(tc6393xb_cells[TC6393XB_CELL_MMC]); | ||
706 | |||
707 | tc6393xb_cells[TC6393XB_CELL_OHCI].platform_data = | ||
708 | &tc6393xb_cells[TC6393XB_CELL_OHCI]; | ||
709 | tc6393xb_cells[TC6393XB_CELL_OHCI].data_size = | ||
710 | sizeof(tc6393xb_cells[TC6393XB_CELL_OHCI]); | ||
711 | |||
712 | tc6393xb_cells[TC6393XB_CELL_FB].driver_data = tcpd->fb_data; | 697 | tc6393xb_cells[TC6393XB_CELL_FB].driver_data = tcpd->fb_data; |
713 | tc6393xb_cells[TC6393XB_CELL_FB].platform_data = | ||
714 | &tc6393xb_cells[TC6393XB_CELL_FB]; | ||
715 | tc6393xb_cells[TC6393XB_CELL_FB].data_size = | ||
716 | sizeof(tc6393xb_cells[TC6393XB_CELL_FB]); | ||
717 | 698 | ||
718 | ret = mfd_add_devices(&dev->dev, dev->id, | 699 | ret = mfd_add_devices(&dev->dev, dev->id, |
719 | tc6393xb_cells, ARRAY_SIZE(tc6393xb_cells), | 700 | tc6393xb_cells, ARRAY_SIZE(tc6393xb_cells), |