aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/ali5451/ali5451.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2007-05-30 06:42:31 -0400
committerJaroslav Kysela <perex@suse.cz>2007-07-20 05:11:22 -0400
commitba8c3c37db0d6bf5e6de25016975ebfb558d2aba (patch)
treee4bff2f50512ac350ee718a1445dffd525cbb229 /sound/pci/ali5451/ali5451.c
parent807a463603a2e014f36e88317aa5e07c15887fcd (diff)
[ALSA] ali5451 - Fix invalid type of codec->irq field
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>
Diffstat (limited to 'sound/pci/ali5451/ali5451.c')
-rw-r--r--sound/pci/ali5451/ali5451.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/pci/ali5451/ali5451.c b/sound/pci/ali5451/ali5451.c
index 41543a4933e7..e2c8666e06ad 100644
--- a/sound/pci/ali5451/ali5451.c
+++ b/sound/pci/ali5451/ali5451.c
@@ -239,7 +239,7 @@ struct snd_ali_image {
239 239
240 240
241struct snd_ali { 241struct snd_ali {
242 unsigned long irq; 242 int irq;
243 unsigned long port; 243 unsigned long port;
244 unsigned char revision; 244 unsigned char revision;
245 245
@@ -2343,7 +2343,7 @@ static int __devinit snd_ali_probe(struct pci_dev *pci,
2343 strcpy(card->driver, "ALI5451"); 2343 strcpy(card->driver, "ALI5451");
2344 strcpy(card->shortname, "ALI 5451"); 2344 strcpy(card->shortname, "ALI 5451");
2345 2345
2346 sprintf(card->longname, "%s at 0x%lx, irq %li", 2346 sprintf(card->longname, "%s at 0x%lx, irq %i",
2347 card->shortname, codec->port, codec->irq); 2347 card->shortname, codec->port, codec->irq);
2348 2348
2349 snd_ali_printk("register card.\n"); 2349 snd_ali_printk("register card.\n");