From 8a4fbe013fb6a2a65a4eddcddb888ebe38d0270d Mon Sep 17 00:00:00 2001 From: Ian Molton Date: Mon, 4 Aug 2008 18:06:18 +0200 Subject: [PATCH] mfd: t7l66 MMC platform data The tmio MMC driver needs the cell to be passed as a platform data. Signed-off-by: Samuel Ortiz --- drivers/mfd/t7l66xb.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/mfd/t7l66xb.c b/drivers/mfd/t7l66xb.c index 2d715fcea76..49a0fffc02a 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); -- 2.41.1