[ALSA] sound: fix caiaq section mismatches
authorRandy Dunlap <randy.dunlap@oracle.com>
Wed, 16 Jan 2008 13:56:04 +0000 (14:56 +0100)
committerJaroslav Kysela <perex@perex.cz>
Thu, 31 Jan 2008 16:30:01 +0000 (17:30 +0100)
Fix section mismatch in caiaq: these __devinit functions can be
called at any time so they should not be __devinit.
WARNING: vmlinux.o(.text+0x10a8dae): Section mismatch: reference to .init.text:snd_usb_caiaq_audio_init (between 'setup_card' and 'create_card')
WARNING: vmlinux.o(.text+0x10a8dd6): Section mismatch: reference to .init.text:snd_usb_caiaq_midi_init (between 'setup_card' and 'create_card')

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
sound/usb/caiaq/caiaq-audio.c
sound/usb/caiaq/caiaq-midi.c

index f7e5284b8620a79f508819006120015227f20d7e..2f9e9b2a7ffc10a71eda7f00db294c1b98675b03 100644 (file)
@@ -603,7 +603,7 @@ static void free_urbs(struct urb **urbs)
        kfree(urbs);
 }
 
-int __devinit snd_usb_caiaq_audio_init(struct snd_usb_caiaqdev *dev)
+int snd_usb_caiaq_audio_init(struct snd_usb_caiaqdev *dev)
 {
        int i, ret;
 
index 54270328be5251d489c7b493fe1be307fe6106eb..30b57f97c6e411221517f9a8c3d0a5e1a42036b0 100644 (file)
@@ -123,7 +123,7 @@ void snd_usb_caiaq_midi_handle_input(struct snd_usb_caiaqdev *dev,
        snd_rawmidi_receive(dev->midi_receive_substream, buf, len);
 }
 
-int __devinit snd_usb_caiaq_midi_init(struct snd_usb_caiaqdev *device)
+int snd_usb_caiaq_midi_init(struct snd_usb_caiaqdev *device)
 {
        int ret;
        struct snd_rawmidi *rmidi;