Skip to content

Commit

Permalink
[ALSA] sound: fix caiaq section mismatches
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Randy Dunlap authored and Jaroslav Kysela committed Jan 31, 2008
1 parent 1374f8c commit 599c3e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sound/usb/caiaq/caiaq-audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion sound/usb/caiaq/caiaq-midi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 599c3e7

Please sign in to comment.