Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: tc6387 MMC platform data

We need to pass the cell as the platform data.

Signed-off-by: Samuel Ortiz <sameo@openedhand.com>

authored by

Ian Molton and committed by
Samuel Ortiz
d2432a63 56bf2bda

+10 -1
+10 -1
drivers/mfd/tc6387xb.c
··· 17 17 #include <linux/mfd/tmio.h> 18 18 #include <linux/mfd/tc6387xb.h> 19 19 20 + enum { 21 + TC6387XB_CELL_MMC, 22 + }; 23 + 20 24 #ifdef CONFIG_PM 21 25 static int tc6387xb_suspend(struct platform_device *dev, pm_message_t state) 22 26 { ··· 91 87 }; 92 88 93 89 static struct mfd_cell tc6387xb_cells[] = { 94 - { 90 + [TC6387XB_CELL_MMC] = { 95 91 .name = "tmio-mmc", 96 92 .enable = tc6387xb_mmc_enable, 97 93 .disable = tc6387xb_mmc_disable, ··· 122 118 data->enable(dev); 123 119 124 120 printk(KERN_INFO "Toshiba tc6387xb initialised\n"); 121 + 122 + tc6387xb_cells[TC6387XB_CELL_MMC].platform_data = 123 + &tc6387xb_cells[TC6387XB_CELL_MMC]; 124 + tc6387xb_cells[TC6387XB_CELL_MMC].data_size = 125 + sizeof(tc6387xb_cells[TC6387XB_CELL_MMC]); 125 126 126 127 ret = mfd_add_devices(&dev->dev, dev->id, tc6387xb_cells, 127 128 ARRAY_SIZE(tc6387xb_cells), iomem, irq);