diff options
Diffstat (limited to 'arch/arm/plat-omap')
-rw-r--r-- | arch/arm/plat-omap/devices.c | 3 | ||||
-rw-r--r-- | arch/arm/plat-omap/include/mach/mmc.h | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/plat-omap/devices.c b/arch/arm/plat-omap/devices.c index 208dbb121f47..87fb7ff41794 100644 --- a/arch/arm/plat-omap/devices.c +++ b/arch/arm/plat-omap/devices.c | |||
@@ -228,6 +228,9 @@ int __init omap_mmc_add(const char *name, int id, unsigned long base, | |||
228 | ret = platform_device_add(pdev); | 228 | ret = platform_device_add(pdev); |
229 | if (ret) | 229 | if (ret) |
230 | goto fail; | 230 | goto fail; |
231 | |||
232 | /* return device handle to board setup code */ | ||
233 | data->dev = &pdev->dev; | ||
231 | return 0; | 234 | return 0; |
232 | 235 | ||
233 | fail: | 236 | fail: |
diff --git a/arch/arm/plat-omap/include/mach/mmc.h b/arch/arm/plat-omap/include/mach/mmc.h index 73a9e15031b1..4435bd434e17 100644 --- a/arch/arm/plat-omap/include/mach/mmc.h +++ b/arch/arm/plat-omap/include/mach/mmc.h | |||
@@ -37,6 +37,8 @@ | |||
37 | #define OMAP_MMC_MAX_SLOTS 2 | 37 | #define OMAP_MMC_MAX_SLOTS 2 |
38 | 38 | ||
39 | struct omap_mmc_platform_data { | 39 | struct omap_mmc_platform_data { |
40 | /* back-link to device */ | ||
41 | struct device *dev; | ||
40 | 42 | ||
41 | /* number of slots per controller */ | 43 | /* number of slots per controller */ |
42 | unsigned nr_slots:2; | 44 | unsigned nr_slots:2; |