Commit:     c598195a2d32dc5388c636260c16e07ebee9b051
Parent:     9e03ad7907bc9c9e60a3ea09579a61ad7f9e59c8
Author:     Sam Ravnborg <[EMAIL PROTECTED]>
AuthorDate: Fri Feb 22 18:46:47 2008 +0100
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Fri Feb 22 14:20:09 2008 -0800

    [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 <[EMAIL PROTECTED]>
    Signed-off-by: Takashi Iwai <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 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 58d25e4..7c44a2c 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 
                                          tmp, sizeof(tmp));
-static void setup_card(struct snd_usb_caiaqdev *dev)
+static void __devinit setup_card(struct snd_usb_caiaqdev *dev)
        int ret;
        char val[4];
@@ -359,7 +359,7 @@ static struct snd_card* create_card(struct usb_device* 
        return card;
-static int init_card(struct snd_usb_caiaqdev *dev)
+static int __devinit init_card(struct snd_usb_caiaqdev *dev)
        char *c;
        struct usb_device *usb_dev = dev->;
@@ -428,7 +428,7 @@ static int init_card(struct snd_usb_caiaqdev *dev)
        return 0;
-static int snd_probe(struct usb_interface *intf, 
+static int __devinit snd_probe(struct usb_interface *intf, 
                     const struct usb_device_id *id)
        int ret;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to