[ALSA] fix cs5535 section mismatch
authorRandy Dunlap <[email protected]>
Wed, 23 Jan 2008 10:52:06 +0000 (11:52 +0100)
committerJaroslav Kysela <[email protected]>
Thu, 31 Jan 2008 16:30:12 +0000 (17:30 +0100)
snd_cs5535audio_mixer() is only called by __devinit snd_cs5535audio_probe(),
so the mixer function can also be __devinit.
WARNING: vmlinux.o(.text+0xfdbba0): Section mismatch: reference to .init.data:ac97_quirks (between 'snd_cs5535audio_mixer' and 'process_bm0_irq')

Signed-off-by: Randy Dunlap <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
Signed-off-by: Jaroslav Kysela <[email protected]>
sound/pci/cs5535audio/cs5535audio.c

index a0c54f0a265f7407980f4c448220cdbc6674e217..1d8b160525355e21eb7ee5c5dcd3a18d5877b313 100644 (file)
@@ -144,7 +144,7 @@ static unsigned short snd_cs5535audio_ac97_codec_read(struct snd_ac97 *ac97,
        return snd_cs5535audio_codec_read(cs5535au, reg);
 }
 
-static int snd_cs5535audio_mixer(struct cs5535audio *cs5535au)
+static int __devinit snd_cs5535audio_mixer(struct cs5535audio *cs5535au)
 {
        struct snd_card *card = cs5535au->card;
        struct snd_ac97_bus *pbus;