Commit 55c69ae2 authored by Jaroslav Kysela's avatar Jaroslav Kysela

[ALSA] Print values at errors

EMU10K1/EMU10K2 driver
Print out the invalid values at resource allocation errors, too.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent a9a52af8
......@@ -938,16 +938,16 @@ static int __devinit snd_emu10k1x_create(snd_card_t *card,
chip->port = pci_resource_start(pci, 0);
if ((chip->res_port = request_region(chip->port, 8,
"EMU10K1X")) == NULL) {
snd_printk(KERN_ERR "emu10k1x: cannot allocate the port 0x%lx\n", chip->port);
snd_emu10k1x_free(chip);
snd_printk(KERN_ERR "cannot allocate the port\n");
return -EBUSY;
}
if (request_irq(pci->irq, snd_emu10k1x_interrupt,
SA_INTERRUPT|SA_SHIRQ, "EMU10K1X",
(void *)chip)) {
snd_printk(KERN_ERR "emu10k1x: cannot grab irq %d\n", pci->irq);
snd_emu10k1x_free(chip);
snd_printk(KERN_ERR "cannot grab irq\n");
return -EBUSY;
}
chip->irq = pci->irq;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment