aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap1/devices.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap1/devices.c')
-rw-r--r--arch/arm/mach-omap1/devices.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-omap1/devices.c b/arch/arm/mach-omap1/devices.c
index f85836ae6691..d807d949913d 100644
--- a/arch/arm/mach-omap1/devices.c
+++ b/arch/arm/mach-omap1/devices.c
@@ -175,6 +175,13 @@ static int __init omap_mmc_add(const char *name, int id, unsigned long base,
175 res[3].name = "tx"; 175 res[3].name = "tx";
176 res[3].flags = IORESOURCE_DMA; 176 res[3].flags = IORESOURCE_DMA;
177 177
178 if (cpu_is_omap7xx())
179 data->slots[0].features = MMC_OMAP7XX;
180 if (cpu_is_omap15xx())
181 data->slots[0].features = MMC_OMAP15XX;
182 if (cpu_is_omap16xx())
183 data->slots[0].features = MMC_OMAP16XX;
184
178 ret = platform_device_add_resources(pdev, res, ARRAY_SIZE(res)); 185 ret = platform_device_add_resources(pdev, res, ARRAY_SIZE(res));
179 if (ret == 0) 186 if (ret == 0)
180 ret = platform_device_add_data(pdev, data, sizeof(*data)); 187 ret = platform_device_add_data(pdev, data, sizeof(*data));