diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2008-02-22 12:46:47 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-22 17:20:09 -0500 |
commit | c598195a2d32dc5388c636260c16e07ebee9b051 (patch) | |
tree | d7bb2374157252a8297ea4a16774c1b1cc79c48d /sound/usb/caiaq/caiaq-device.c | |
parent | 9e03ad7907bc9c9e60a3ea09579a61ad7f9e59c8 (diff) |
[ALSA] caiaq - fix section mismatch warning
Fix following warning:
WARNING: vmlinux.o(.text+0x11ec01a): Section mismatch in reference from the function setup_card() to the function .devinit.text:snd_usb_caiaq_control_init()
setup_card() are only used by init_card().
init_card() are only used by snd_probe()
snd_probe() are used for the .probe parameter in usb_driver.probe
Annotate them all __devinit to fix the warning.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'sound/usb/caiaq/caiaq-device.c')
-rw-r--r-- | sound/usb/caiaq/caiaq-device.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/usb/caiaq/caiaq-device.c b/sound/usb/caiaq/caiaq-device.c index 58d25e4e7d6c..7c44a2c7f963 100644 --- a/sound/usb/caiaq/caiaq-device.c +++ b/sound/usb/caiaq/caiaq-device.c | |||
@@ -245,7 +245,7 @@ int snd_usb_caiaq_set_auto_msg (struct snd_usb_caiaqdev *dev, | |||
245 | tmp, sizeof(tmp)); | 245 | tmp, sizeof(tmp)); |
246 | } | 246 | } |
247 | 247 | ||
248 | static void setup_card(struct snd_usb_caiaqdev *dev) | 248 | static void __devinit setup_card(struct snd_usb_caiaqdev *dev) |
249 | { | 249 | { |
250 | int ret; | 250 | int ret; |
251 | char val[4]; | 251 | char val[4]; |
@@ -359,7 +359,7 @@ static struct snd_card* create_card(struct usb_device* usb_dev) | |||
359 | return card; | 359 | return card; |
360 | } | 360 | } |
361 | 361 | ||
362 | static int init_card(struct snd_usb_caiaqdev *dev) | 362 | static int __devinit init_card(struct snd_usb_caiaqdev *dev) |
363 | { | 363 | { |
364 | char *c; | 364 | char *c; |
365 | struct usb_device *usb_dev = dev->chip.dev; | 365 | struct usb_device *usb_dev = dev->chip.dev; |
@@ -428,7 +428,7 @@ static int init_card(struct snd_usb_caiaqdev *dev) | |||
428 | return 0; | 428 | return 0; |
429 | } | 429 | } |
430 | 430 | ||
431 | static int snd_probe(struct usb_interface *intf, | 431 | static int __devinit snd_probe(struct usb_interface *intf, |
432 | const struct usb_device_id *id) | 432 | const struct usb_device_id *id) |
433 | { | 433 | { |
434 | int ret; | 434 | int ret; |