Skip to contentSkip to conversation

ASoC: Make wm1250-ev1 depends on GPIOLIB

RFC PATCH In review Axel Lin 2 participants 2 messages Sep 27, 2011

Subsystems (2)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

RFC PATCH 1/1 ASoC: Make wm1250-ev1 depends on GPIOLIB

I got below build error if GPIO support is disabled. Make wm1250-ev1 depends on GPIOLIB to fix below build error.

CC sound/soc/codecs/wm1250-ev1.o
sound/soc/codecs/wm1250-ev1.c:32:14: error: array type has incomplete element type sound/soc/codecs/wm1250-ev1.c: In function ‘wm1250_ev1_pdata’:
sound/soc/codecs/wm1250-ev1.c:126:18: warning: type defaults to ‘int’ in type name sound/soc/codecs/wm1250-ev1.c:126:18: warning: type defaults to ‘int’ in type name sound/soc/codecs/wm1250-ev1.c:126:18: error: negative width in bit-field ‘<anonymous>’ sound/soc/codecs/wm1250-ev1.c:134:42: warning: type defaults to ‘int’ in type name sound/soc/codecs/wm1250-ev1.c:134:42: warning: type defaults to ‘int’ in type name sound/soc/codecs/wm1250-ev1.c:134:42: error: negative width in bit-field ‘<anonymous>’ sound/soc/codecs/wm1250-ev1.c: In function ‘wm1250_ev1_free’:
sound/soc/codecs/wm1250-ev1.c:155:34: warning: type defaults to ‘int’ in type name sound/soc/codecs/wm1250-ev1.c:155:34: warning: type defaults to ‘int’ in type name sound/soc/codecs/wm1250-ev1.c:155:34: error: negative width in bit-field ‘<anonymous>’ make[3]: *** [sound/soc/codecs/wm1250-ev1.o] Error 1
make[2]: *** [sound/soc/codecs] Error 2
make[1]: *** [sound/soc] Error 2
make: *** [sound] Error 2

---
I got the build error while trying to build for SND_MFLD_MACHINE and SND_SST_PLATFORM. ( "Enable ALSA for SoC audio support" and "Build all ASoC CODEC drivers" on X86 )

Axel

 sound/soc/codecs/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
sound/soc/codecs/Kconfig +1 -1
index 3449431..0ad80fe 100644
@@ -58,7 +58,7 @@ config SND_SOC_ALL_CODECS
 	select SND_SOC_UDA134X
 	select SND_SOC_UDA1380 if I2C
 	select SND_SOC_WL1273 if MFD_WL1273_CORE
-	select SND_SOC_WM1250_EV1 if I2C
+	select SND_SOC_WM1250_EV1 if I2C && GPIOLIB
 	select SND_SOC_WM2000 if I2C
 	select SND_SOC_WM5100 if I2C
 	select SND_SOC_WM8350 if MFD_WM8350
Signature · 1 line
1.7.4.1
#1 lore raw
Quoted 2 lines · Axel Lin

I got below build error if GPIO support is disabled. Make wm1250-ev1 depends on GPIOLIB to fix below build error.

If platforms aren't using the standard gpiolib infrastructure they should keep their GPIO API implementation up to date with the current state of the art.