]> err.no Git - linux-2.6/commitdiff
[ALSA] ali5451 - Fix invalid type of codec->irq field
authorTakashi Iwai <tiwai@suse.de>
Wed, 30 May 2007 10:42:31 +0000 (12:42 +0200)
committerJaroslav Kysela <perex@suse.cz>
Fri, 20 Jul 2007 09:11:22 +0000 (11:11 +0200)
The irq field of struct snd_ali shouldn't be unsigned since it's
uninitialized value is -1.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
sound/pci/ali5451/ali5451.c

index 41543a4933e7031c849892326df2ac3d43abb220..e2c8666e06ade4a0bf399ccfad6dc5eeab781f70 100644 (file)
@@ -239,7 +239,7 @@ struct snd_ali_image {
 
 
 struct snd_ali {
-       unsigned long   irq;
+       int             irq;
        unsigned long   port;
        unsigned char   revision;
 
@@ -2343,7 +2343,7 @@ static int __devinit snd_ali_probe(struct pci_dev *pci,
        strcpy(card->driver, "ALI5451");
        strcpy(card->shortname, "ALI 5451");
        
-       sprintf(card->longname, "%s at 0x%lx, irq %li",
+       sprintf(card->longname, "%s at 0x%lx, irq %i",
                card->shortname, codec->port, codec->irq);
 
        snd_ali_printk("register card.\n");