Skip to contentSkip to conversation

mcspi can be modular...

PATCH In review David Brownell 2 participants 2 messages Aug 14, 2007 – Aug 15, 2007

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

PATCH 1/1 mcspi can be modular...

Don't assume only non-modular builds. Just in case someone's crazy.

arch/arm/mach-omap2/devices.c +1 -1
@@ -146,7 +146,7 @@ static inline void omap_init_sti(void)
 static inline void omap_init_sti(void) {}
 #endif
 
-#if defined(CONFIG_SPI_OMAP24XX)
+#if defined(CONFIG_SPI_OMAP24XX) || defined(CONFIG_SPI_OMAP24XX_MODULE)
 
 #include <asm/arch/mcspi.h>
 
maintainer
#1 lore raw
Quoted 7 lines · David Brownell

Don't assume only non-modular builds. Just in case someone's crazy.

arch/arm/mach-omap2/devices.c static inline void omap_init_sti(void) · line 151

Quoted 7 lines
arch/arm/mach-omap2/devices.c +1 -1
@@ -146,7 +146,7 @@ static inline void omap_init_sti(void)
 static inline void omap_init_sti(void) {}
 #endif
 
-#if defined(CONFIG_SPI_OMAP24XX)
+#if defined(CONFIG_SPI_OMAP24XX) || defined(CONFIG_SPI_OMAP24XX_MODULE)
 
 #include <asm/arch/mcspi.h>

Pushing today.

Tony