Skip to content

Commit

Permalink
mfd: mfd_cell is now implicitly available to tc6387xb drivers
Browse files Browse the repository at this point in the history
No need to explicitly set the cell's platform_data/data_size.

Signed-off-by: Andres Salomon <[email protected]>
Signed-off-by: Samuel Ortiz <[email protected]>
  • Loading branch information
dilinger authored and Samuel Ortiz committed Mar 23, 2011
1 parent 0638d56 commit 6a3521a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/mfd/tc6387xb.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,6 @@ static int __devinit tc6387xb_probe(struct platform_device *dev)

printk(KERN_INFO "Toshiba tc6387xb initialised\n");

tc6387xb_cells[TC6387XB_CELL_MMC].platform_data =
&tc6387xb_cells[TC6387XB_CELL_MMC];
tc6387xb_cells[TC6387XB_CELL_MMC].data_size =
sizeof(tc6387xb_cells[TC6387XB_CELL_MMC]);

ret = mfd_add_devices(&dev->dev, dev->id, tc6387xb_cells,
ARRAY_SIZE(tc6387xb_cells), iomem, irq);

Expand Down

0 comments on commit 6a3521a

Please sign in to comment.