Skip to contentSkip to conversation

OMAP: mmc: remove ifdef in omap_mmc_platform_data defination

PATCH In review [email protected] 2 participants 2 messages Oct 4, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 OMAP: mmc: remove ifdef in omap_mmc_platform_data defination

From: Ming Lei <[email protected]>

The instance of omap_mmc_platform_data is alwasy passed to
mmc omap host driver from board, so remove ifdef in omap_mmc_platform_data defination to simplify handling it in mmc omap host driver.

The patch fixes the compile error below:

drivers/mmc/host/omap.c: In function 'mmc_omap_new_slot':
drivers/mmc/host/omap.c:1320: error: 'struct omap_mmc_slot_data' has no member named 'wires' make[3]: *** [drivers/mmc/host/omap.o] Error 1
make[2]: *** [drivers/mmc/host] Error 2
make[1]: *** [drivers/mmc] Error 2
make: *** [drivers] Error 2

---
 arch/arm/plat-omap/include/plat/mmc.h |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
arch/arm/plat-omap/include/plat/mmc.h +0 -4
index 3107892..f57f36a 100644
@@ -80,12 +80,8 @@ struct omap_mmc_platform_data {
 		 * 4/8 wires and any additional host capabilities
 		 * need to OR'd all capabilities (ref. linux/mmc/host.h)
 		 */
-#if defined(CONFIG_ARCH_OMAP1) || defined(CONFIG_ARCH_OMAP2420)
 		u8  wires;	/* Used for the MMC driver on omap1 and 2420 */
-#endif
-#ifdef CONFIG_ARCH_OMAP2PLUS
 		u32 caps;	/* Used for the MMC driver on 2430 and later */
-#endif
 
 		/*
 		 * nomux means "standard" muxing is wrong on this board, and
Signature · 1 line
1.7.3
#1 lore raw
Quoted 5 lines · * [email protected] <[email protected]> [101004 09:45]:

From: Ming Lei <[email protected]>

The instance of omap_mmc_platform_data is alwasy passed to
mmc omap host driver from board, so remove ifdef in omap_mmc_platform_data defination to simplify handling it in mmc omap host driver.

OK, let's do this. Eventually we can convert omap1/2420 MMC controller to use caps also.

Quoted 8 lines

The patch fixes the compile error below:

drivers/mmc/host/omap.c: In function 'mmc_omap_new_slot':
drivers/mmc/host/omap.c:1320: error: 'struct omap_mmc_slot_data' has no member named 'wires' make[3]: *** [drivers/mmc/host/omap.o] Error 1
make[2]: *** [drivers/mmc/host] Error 2
make[1]: *** [drivers/mmc] Error 2
make: *** [drivers] Error 2

I'll merge this into the earlier patch "omap: Keep nwires for omap1 and 2420 MMC controller".

Regards,

Tony