Skip to content

Commit

Permalink
mfd: t7l66 MMC platform data
Browse files Browse the repository at this point in the history
The tmio MMC driver needs the cell to be passed as a platform data.

Signed-off-by: Samuel Ortiz <sameo@openedhand.com>
  • Loading branch information
Ian Molton authored and Samuel Ortiz committed Aug 10, 2008
1 parent d2432a6 commit 8a4fbe0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/mfd/t7l66xb.c
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,11 @@ static int t7l66xb_probe(struct platform_device *dev)
t7l66xb_cells[T7L66XB_CELL_NAND].data_size =
sizeof(t7l66xb_cells[T7L66XB_CELL_NAND]);

t7l66xb_cells[T7L66XB_CELL_MMC].platform_data =
&t7l66xb_cells[T7L66XB_CELL_MMC];
t7l66xb_cells[T7L66XB_CELL_MMC].data_size =
sizeof(t7l66xb_cells[T7L66XB_CELL_MMC]);

ret = mfd_add_devices(&dev->dev, dev->id,
t7l66xb_cells, ARRAY_SIZE(t7l66xb_cells),
iomem, t7l66xb->irq_base);
Expand Down

0 comments on commit 8a4fbe0

Please sign in to comment.