From: Ian Molton Date: Mon, 4 Aug 2008 16:06:18 +0000 (+0200) Subject: mfd: t7l66 MMC platform data X-Git-Tag: v2.6.27-rc3~53^2~4 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a4fbe013fb6a2a65a4eddcddb888ebe38d0270d;p=linux-2.6 mfd: t7l66 MMC platform data The tmio MMC driver needs the cell to be passed as a platform data. Signed-off-by: Samuel Ortiz --- diff --git a/drivers/mfd/t7l66xb.c b/drivers/mfd/t7l66xb.c index 2d715fcea7..49a0fffc02 100644 --- a/drivers/mfd/t7l66xb.c +++ b/drivers/mfd/t7l66xb.c @@ -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);