[ARM] pxa/em-x270: always register AC97 controller device
[deliverable/linux.git] / arch / arm / mach-pxa / em-x270.c
index 5184a570ac5f33865c6a77b41e41ef48cefcf7b3..5343d1f339d65dcf8882a084ad2ea3c421ab2df8 100644 (file)
@@ -839,10 +839,14 @@ static void __init em_x270_init_spi(void)
 static inline void em_x270_init_spi(void) {}
 #endif
 
-#if defined(CONFIG_SND_PXA2XX_AC97) || defined(CONFIG_SND_PXA2XX_AC97_MODULE)
+#if defined(CONFIG_SND_PXA2XX_AC97_LIB)
+static pxa2xx_audio_ops_t em_x270_ac97_info = {
+       .reset_gpio = 113,
+};
+
 static void __init em_x270_init_ac97(void)
 {
-       pxa_set_ac97_info(NULL);
+       pxa_set_ac97_info(&em_x270_ac97_info);
 }
 #else
 static inline void em_x270_init_ac97(void) {}
This page took 0.025004 seconds and 5 git commands to generate.