]> err.no Git - linux-2.6/commitdiff
mfd: t7l66 MMC platform data
authorIan Molton <spyro@f2s.com>
Mon, 4 Aug 2008 16:06:18 +0000 (18:06 +0200)
committerSamuel Ortiz <sameo@openedhand.com>
Sun, 10 Aug 2008 18:10:15 +0000 (20:10 +0200)
The tmio MMC driver needs the cell to be passed as a platform data.

Signed-off-by: Samuel Ortiz <sameo@openedhand.com>
drivers/mfd/t7l66xb.c

index 2d715fcea76fd171949374448592f48e53639be1..49a0fffc02afc238813c42ecff698700184b962f 100644 (file)
@@ -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);