mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 20:22:09 +00:00
ALSA: use KBUILD_MODNAME for request_irq argument in sound/pci/*
The name argument of request_irq() appears in /proc/interrupts, and it's quite ugly when the name entry contains a space or special letters. In general, it's simpler and more readable when the module name appears there, so let's replace all entries with KBUILD_MODNAME. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
3733e424c4
commit
934c2b6d0c
@ -944,7 +944,7 @@ snd_ad1889_create(struct snd_card *card,
|
|||||||
spin_lock_init(&chip->lock); /* only now can we call ad1889_free */
|
spin_lock_init(&chip->lock); /* only now can we call ad1889_free */
|
||||||
|
|
||||||
if (request_irq(pci->irq, snd_ad1889_interrupt,
|
if (request_irq(pci->irq, snd_ad1889_interrupt,
|
||||||
IRQF_SHARED, card->driver, chip)) {
|
IRQF_SHARED, KBUILD_MODNAME, chip)) {
|
||||||
printk(KERN_ERR PFX "cannot obtain IRQ %d\n", pci->irq);
|
printk(KERN_ERR PFX "cannot obtain IRQ %d\n", pci->irq);
|
||||||
snd_ad1889_free(chip);
|
snd_ad1889_free(chip);
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
|
@ -2090,7 +2090,7 @@ static int __devinit snd_ali_resources(struct snd_ali *codec)
|
|||||||
codec->port = pci_resource_start(codec->pci, 0);
|
codec->port = pci_resource_start(codec->pci, 0);
|
||||||
|
|
||||||
if (request_irq(codec->pci->irq, snd_ali_card_interrupt,
|
if (request_irq(codec->pci->irq, snd_ali_card_interrupt,
|
||||||
IRQF_SHARED, "ALI 5451", codec)) {
|
IRQF_SHARED, KBUILD_MODNAME, codec)) {
|
||||||
snd_printk(KERN_ERR "Unable to request irq.\n");
|
snd_printk(KERN_ERR "Unable to request irq.\n");
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
}
|
}
|
||||||
|
@ -722,7 +722,7 @@ static int __devinit snd_als300_create(struct snd_card *card,
|
|||||||
irq_handler = snd_als300_interrupt;
|
irq_handler = snd_als300_interrupt;
|
||||||
|
|
||||||
if (request_irq(pci->irq, irq_handler, IRQF_SHARED,
|
if (request_irq(pci->irq, irq_handler, IRQF_SHARED,
|
||||||
card->shortname, chip)) {
|
KBUILD_MODNAME, chip)) {
|
||||||
snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
|
snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
|
||||||
snd_als300_free(chip);
|
snd_als300_free(chip);
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
|
@ -1624,7 +1624,7 @@ static int __devinit snd_atiixp_create(struct snd_card *card,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (request_irq(pci->irq, snd_atiixp_interrupt, IRQF_SHARED,
|
if (request_irq(pci->irq, snd_atiixp_interrupt, IRQF_SHARED,
|
||||||
card->shortname, chip)) {
|
KBUILD_MODNAME, chip)) {
|
||||||
snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
|
snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
|
||||||
snd_atiixp_free(chip);
|
snd_atiixp_free(chip);
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
|
@ -1260,7 +1260,7 @@ static int __devinit snd_atiixp_create(struct snd_card *card,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (request_irq(pci->irq, snd_atiixp_interrupt, IRQF_SHARED,
|
if (request_irq(pci->irq, snd_atiixp_interrupt, IRQF_SHARED,
|
||||||
card->shortname, chip)) {
|
KBUILD_MODNAME, chip)) {
|
||||||
snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
|
snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
|
||||||
snd_atiixp_free(chip);
|
snd_atiixp_free(chip);
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
|
@ -196,7 +196,7 @@ snd_vortex_create(struct snd_card *card, struct pci_dev *pci, vortex_t ** rchip)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ((err = request_irq(pci->irq, vortex_interrupt,
|
if ((err = request_irq(pci->irq, vortex_interrupt,
|
||||||
IRQF_SHARED, CARD_NAME_SHORT,
|
IRQF_SHARED, KBUILD_MODNAME,
|
||||||
chip)) != 0) {
|
chip)) != 0) {
|
||||||
printk(KERN_ERR "cannot grab irq\n");
|
printk(KERN_ERR "cannot grab irq\n");
|
||||||
goto irq_out;
|
goto irq_out;
|
||||||
|
@ -317,7 +317,7 @@ static int __devinit snd_aw2_create(struct snd_card *card,
|
|||||||
snd_aw2_saa7146_setup(&chip->saa7146, chip->iobase_virt);
|
snd_aw2_saa7146_setup(&chip->saa7146, chip->iobase_virt);
|
||||||
|
|
||||||
if (request_irq(pci->irq, snd_aw2_saa7146_interrupt,
|
if (request_irq(pci->irq, snd_aw2_saa7146_interrupt,
|
||||||
IRQF_SHARED, "Audiowerk2", chip)) {
|
IRQF_SHARED, KBUILD_MODNAME, chip)) {
|
||||||
printk(KERN_ERR "aw2: Cannot grab irq %d\n", pci->irq);
|
printk(KERN_ERR "aw2: Cannot grab irq %d\n", pci->irq);
|
||||||
|
|
||||||
iounmap(chip->iobase_virt);
|
iounmap(chip->iobase_virt);
|
||||||
|
@ -2559,7 +2559,7 @@ snd_azf3328_create(struct snd_card *card,
|
|||||||
codec_setup->name = "I2S_OUT";
|
codec_setup->name = "I2S_OUT";
|
||||||
|
|
||||||
if (request_irq(pci->irq, snd_azf3328_interrupt,
|
if (request_irq(pci->irq, snd_azf3328_interrupt,
|
||||||
IRQF_SHARED, card->shortname, chip)) {
|
IRQF_SHARED, KBUILD_MODNAME, chip)) {
|
||||||
snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
|
snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
|
||||||
err = -EBUSY;
|
err = -EBUSY;
|
||||||
goto out_err;
|
goto out_err;
|
||||||
|
@ -760,7 +760,7 @@ static int __devinit snd_bt87x_create(struct snd_card *card,
|
|||||||
snd_bt87x_writel(chip, REG_INT_STAT, MY_INTERRUPTS);
|
snd_bt87x_writel(chip, REG_INT_STAT, MY_INTERRUPTS);
|
||||||
|
|
||||||
err = request_irq(pci->irq, snd_bt87x_interrupt, IRQF_SHARED,
|
err = request_irq(pci->irq, snd_bt87x_interrupt, IRQF_SHARED,
|
||||||
"Bt87x audio", chip);
|
KBUILD_MODNAME, chip);
|
||||||
if (err < 0) {
|
if (err < 0) {
|
||||||
snd_printk(KERN_ERR "cannot grab irq %d\n", pci->irq);
|
snd_printk(KERN_ERR "cannot grab irq %d\n", pci->irq);
|
||||||
goto fail;
|
goto fail;
|
||||||
|
@ -1666,7 +1666,7 @@ static int __devinit snd_ca0106_create(int dev, struct snd_card *card,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (request_irq(pci->irq, snd_ca0106_interrupt,
|
if (request_irq(pci->irq, snd_ca0106_interrupt,
|
||||||
IRQF_SHARED, "snd_ca0106", chip)) {
|
IRQF_SHARED, KBUILD_MODNAME, chip)) {
|
||||||
snd_ca0106_free(chip);
|
snd_ca0106_free(chip);
|
||||||
printk(KERN_ERR "cannot grab irq\n");
|
printk(KERN_ERR "cannot grab irq\n");
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
|
@ -3053,7 +3053,7 @@ static int __devinit snd_cmipci_create(struct snd_card *card, struct pci_dev *pc
|
|||||||
cm->iobase = pci_resource_start(pci, 0);
|
cm->iobase = pci_resource_start(pci, 0);
|
||||||
|
|
||||||
if (request_irq(pci->irq, snd_cmipci_interrupt,
|
if (request_irq(pci->irq, snd_cmipci_interrupt,
|
||||||
IRQF_SHARED, card->driver, cm)) {
|
IRQF_SHARED, KBUILD_MODNAME, cm)) {
|
||||||
snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
|
snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
|
||||||
snd_cmipci_free(cm);
|
snd_cmipci_free(cm);
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
|
@ -1382,7 +1382,7 @@ static int __devinit snd_cs4281_create(struct snd_card *card,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (request_irq(pci->irq, snd_cs4281_interrupt, IRQF_SHARED,
|
if (request_irq(pci->irq, snd_cs4281_interrupt, IRQF_SHARED,
|
||||||
"CS4281", chip)) {
|
KBUILD_MODNAME, chip)) {
|
||||||
snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
|
snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
|
||||||
snd_cs4281_free(chip);
|
snd_cs4281_free(chip);
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
@ -3835,7 +3835,7 @@ int __devinit snd_cs46xx_create(struct snd_card *card,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (request_irq(pci->irq, snd_cs46xx_interrupt, IRQF_SHARED,
|
if (request_irq(pci->irq, snd_cs46xx_interrupt, IRQF_SHARED,
|
||||||
"CS46XX", chip)) {
|
KBUILD_MODNAME, chip)) {
|
||||||
snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
|
snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
|
||||||
snd_cs46xx_free(chip);
|
snd_cs46xx_free(chip);
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
|
@ -311,7 +311,7 @@ static int __devinit snd_cs5535audio_create(struct snd_card *card,
|
|||||||
cs5535au->port = pci_resource_start(pci, 0);
|
cs5535au->port = pci_resource_start(pci, 0);
|
||||||
|
|
||||||
if (request_irq(pci->irq, snd_cs5535audio_interrupt,
|
if (request_irq(pci->irq, snd_cs5535audio_interrupt,
|
||||||
IRQF_SHARED, "CS5535 Audio", cs5535au)) {
|
IRQF_SHARED, KBUILD_MODNAME, cs5535au)) {
|
||||||
snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
|
snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
|
||||||
err = -EBUSY;
|
err = -EBUSY;
|
||||||
goto sndfail;
|
goto sndfail;
|
||||||
|
@ -1933,7 +1933,7 @@ static int hw_card_start(struct hw *hw)
|
|||||||
|
|
||||||
if (hw->irq < 0) {
|
if (hw->irq < 0) {
|
||||||
err = request_irq(pci->irq, ct_20k1_interrupt, IRQF_SHARED,
|
err = request_irq(pci->irq, ct_20k1_interrupt, IRQF_SHARED,
|
||||||
"ctxfi", hw);
|
KBUILD_MODNAME, hw);
|
||||||
if (err < 0) {
|
if (err < 0) {
|
||||||
printk(KERN_ERR "XFi: Cannot get irq %d\n", pci->irq);
|
printk(KERN_ERR "XFi: Cannot get irq %d\n", pci->irq);
|
||||||
goto error2;
|
goto error2;
|
||||||
|
@ -1925,7 +1925,7 @@ static int hw_card_start(struct hw *hw)
|
|||||||
|
|
||||||
if (hw->irq < 0) {
|
if (hw->irq < 0) {
|
||||||
err = request_irq(pci->irq, ct_20k2_interrupt, IRQF_SHARED,
|
err = request_irq(pci->irq, ct_20k2_interrupt, IRQF_SHARED,
|
||||||
"ctxfi", hw);
|
KBUILD_MODNAME, hw);
|
||||||
if (err < 0) {
|
if (err < 0) {
|
||||||
printk(KERN_ERR "XFi: Cannot get irq %d\n", pci->irq);
|
printk(KERN_ERR "XFi: Cannot get irq %d\n", pci->irq);
|
||||||
goto error2;
|
goto error2;
|
||||||
|
@ -1995,7 +1995,7 @@ static __devinit int snd_echo_create(struct snd_card *card,
|
|||||||
ioremap_nocache(chip->dsp_registers_phys, sz);
|
ioremap_nocache(chip->dsp_registers_phys, sz);
|
||||||
|
|
||||||
if (request_irq(pci->irq, snd_echo_interrupt, IRQF_SHARED,
|
if (request_irq(pci->irq, snd_echo_interrupt, IRQF_SHARED,
|
||||||
ECHOCARD_NAME, chip)) {
|
KBUILD_MODNAME, chip)) {
|
||||||
snd_echo_free(chip);
|
snd_echo_free(chip);
|
||||||
snd_printk(KERN_ERR "cannot grab irq\n");
|
snd_printk(KERN_ERR "cannot grab irq\n");
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
@ -2286,7 +2286,7 @@ static int snd_echo_resume(struct pci_dev *pci)
|
|||||||
kfree(commpage_bak);
|
kfree(commpage_bak);
|
||||||
|
|
||||||
if (request_irq(pci->irq, snd_echo_interrupt, IRQF_SHARED,
|
if (request_irq(pci->irq, snd_echo_interrupt, IRQF_SHARED,
|
||||||
ECHOCARD_NAME, chip)) {
|
KBUILD_MODNAME, chip)) {
|
||||||
snd_echo_free(chip);
|
snd_echo_free(chip);
|
||||||
snd_printk(KERN_ERR "cannot grab irq\n");
|
snd_printk(KERN_ERR "cannot grab irq\n");
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
|
@ -1904,7 +1904,7 @@ int __devinit snd_emu10k1_create(struct snd_card *card,
|
|||||||
|
|
||||||
/* irq handler must be registered after I/O ports are activated */
|
/* irq handler must be registered after I/O ports are activated */
|
||||||
if (request_irq(pci->irq, snd_emu10k1_interrupt, IRQF_SHARED,
|
if (request_irq(pci->irq, snd_emu10k1_interrupt, IRQF_SHARED,
|
||||||
"EMU10K1", emu)) {
|
KBUILD_MODNAME, emu)) {
|
||||||
err = -EBUSY;
|
err = -EBUSY;
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
@ -925,7 +925,7 @@ static int __devinit snd_emu10k1x_create(struct snd_card *card,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (request_irq(pci->irq, snd_emu10k1x_interrupt,
|
if (request_irq(pci->irq, snd_emu10k1x_interrupt,
|
||||||
IRQF_SHARED, "EMU10K1X", chip)) {
|
IRQF_SHARED, KBUILD_MODNAME, chip)) {
|
||||||
snd_printk(KERN_ERR "emu10k1x: cannot grab irq %d\n", pci->irq);
|
snd_printk(KERN_ERR "emu10k1x: cannot grab irq %d\n", pci->irq);
|
||||||
snd_emu10k1x_free(chip);
|
snd_emu10k1x_free(chip);
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
|
@ -2120,7 +2120,7 @@ static int __devinit snd_ensoniq_create(struct snd_card *card,
|
|||||||
}
|
}
|
||||||
ensoniq->port = pci_resource_start(pci, 0);
|
ensoniq->port = pci_resource_start(pci, 0);
|
||||||
if (request_irq(pci->irq, snd_audiopci_interrupt, IRQF_SHARED,
|
if (request_irq(pci->irq, snd_audiopci_interrupt, IRQF_SHARED,
|
||||||
"Ensoniq AudioPCI", ensoniq)) {
|
KBUILD_MODNAME, ensoniq)) {
|
||||||
snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
|
snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
|
||||||
snd_ensoniq_free(ensoniq);
|
snd_ensoniq_free(ensoniq);
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
|
@ -1514,7 +1514,7 @@ static int es1938_resume(struct pci_dev *pci)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (request_irq(pci->irq, snd_es1938_interrupt,
|
if (request_irq(pci->irq, snd_es1938_interrupt,
|
||||||
IRQF_SHARED, "ES1938", chip)) {
|
IRQF_SHARED, KBUILD_MODNAME, chip)) {
|
||||||
printk(KERN_ERR "es1938: unable to grab IRQ %d, "
|
printk(KERN_ERR "es1938: unable to grab IRQ %d, "
|
||||||
"disabling device\n", pci->irq);
|
"disabling device\n", pci->irq);
|
||||||
snd_card_disconnect(card);
|
snd_card_disconnect(card);
|
||||||
@ -1636,7 +1636,7 @@ static int __devinit snd_es1938_create(struct snd_card *card,
|
|||||||
chip->mpu_port = pci_resource_start(pci, 3);
|
chip->mpu_port = pci_resource_start(pci, 3);
|
||||||
chip->game_port = pci_resource_start(pci, 4);
|
chip->game_port = pci_resource_start(pci, 4);
|
||||||
if (request_irq(pci->irq, snd_es1938_interrupt, IRQF_SHARED,
|
if (request_irq(pci->irq, snd_es1938_interrupt, IRQF_SHARED,
|
||||||
"ES1938", chip)) {
|
KBUILD_MODNAME, chip)) {
|
||||||
snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
|
snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
|
||||||
snd_es1938_free(chip);
|
snd_es1938_free(chip);
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
|
@ -2746,7 +2746,7 @@ static int __devinit snd_es1968_create(struct snd_card *card,
|
|||||||
}
|
}
|
||||||
chip->io_port = pci_resource_start(pci, 0);
|
chip->io_port = pci_resource_start(pci, 0);
|
||||||
if (request_irq(pci->irq, snd_es1968_interrupt, IRQF_SHARED,
|
if (request_irq(pci->irq, snd_es1968_interrupt, IRQF_SHARED,
|
||||||
"ESS Maestro", chip)) {
|
KBUILD_MODNAME, chip)) {
|
||||||
snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
|
snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
|
||||||
snd_es1968_free(chip);
|
snd_es1968_free(chip);
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
|
@ -1199,7 +1199,7 @@ static int __devinit snd_fm801_create(struct snd_card *card,
|
|||||||
chip->port = pci_resource_start(pci, 0);
|
chip->port = pci_resource_start(pci, 0);
|
||||||
if ((tea575x_tuner & TUNER_ONLY) == 0) {
|
if ((tea575x_tuner & TUNER_ONLY) == 0) {
|
||||||
if (request_irq(pci->irq, snd_fm801_interrupt, IRQF_SHARED,
|
if (request_irq(pci->irq, snd_fm801_interrupt, IRQF_SHARED,
|
||||||
"FM801", chip)) {
|
KBUILD_MODNAME, chip)) {
|
||||||
snd_printk(KERN_ERR "unable to grab IRQ %d\n", chip->irq);
|
snd_printk(KERN_ERR "unable to grab IRQ %d\n", chip->irq);
|
||||||
snd_fm801_free(chip);
|
snd_fm801_free(chip);
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
|
@ -2149,7 +2149,7 @@ static int azx_acquire_irq(struct azx *chip, int do_disconnect)
|
|||||||
{
|
{
|
||||||
if (request_irq(chip->pci->irq, azx_interrupt,
|
if (request_irq(chip->pci->irq, azx_interrupt,
|
||||||
chip->msi ? 0 : IRQF_SHARED,
|
chip->msi ? 0 : IRQF_SHARED,
|
||||||
"hda_intel", chip)) {
|
KBUILD_MODNAME, chip)) {
|
||||||
printk(KERN_ERR "hda-intel: unable to grab IRQ %d, "
|
printk(KERN_ERR "hda-intel: unable to grab IRQ %d, "
|
||||||
"disabling device\n", chip->pci->irq);
|
"disabling device\n", chip->pci->irq);
|
||||||
if (do_disconnect)
|
if (do_disconnect)
|
||||||
|
@ -2607,7 +2607,7 @@ static int __devinit snd_ice1712_create(struct snd_card *card,
|
|||||||
ice->profi_port = pci_resource_start(pci, 3);
|
ice->profi_port = pci_resource_start(pci, 3);
|
||||||
|
|
||||||
if (request_irq(pci->irq, snd_ice1712_interrupt, IRQF_SHARED,
|
if (request_irq(pci->irq, snd_ice1712_interrupt, IRQF_SHARED,
|
||||||
"ICE1712", ice)) {
|
KBUILD_MODNAME, ice)) {
|
||||||
snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
|
snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
|
||||||
snd_ice1712_free(ice);
|
snd_ice1712_free(ice);
|
||||||
return -EIO;
|
return -EIO;
|
||||||
|
@ -2509,7 +2509,7 @@ static int __devinit snd_vt1724_create(struct snd_card *card,
|
|||||||
ice->profi_port = pci_resource_start(pci, 1);
|
ice->profi_port = pci_resource_start(pci, 1);
|
||||||
|
|
||||||
if (request_irq(pci->irq, snd_vt1724_interrupt,
|
if (request_irq(pci->irq, snd_vt1724_interrupt,
|
||||||
IRQF_SHARED, "ICE1724", ice)) {
|
IRQF_SHARED, KBUILD_MODNAME, ice)) {
|
||||||
snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
|
snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
|
||||||
snd_vt1724_free(ice);
|
snd_vt1724_free(ice);
|
||||||
return -EIO;
|
return -EIO;
|
||||||
|
@ -2647,7 +2647,7 @@ static int intel8x0_resume(struct pci_dev *pci)
|
|||||||
pci_set_master(pci);
|
pci_set_master(pci);
|
||||||
snd_intel8x0_chip_init(chip, 0);
|
snd_intel8x0_chip_init(chip, 0);
|
||||||
if (request_irq(pci->irq, snd_intel8x0_interrupt,
|
if (request_irq(pci->irq, snd_intel8x0_interrupt,
|
||||||
IRQF_SHARED, card->shortname, chip)) {
|
IRQF_SHARED, KBUILD_MODNAME, chip)) {
|
||||||
printk(KERN_ERR "intel8x0: unable to grab IRQ %d, "
|
printk(KERN_ERR "intel8x0: unable to grab IRQ %d, "
|
||||||
"disabling device\n", pci->irq);
|
"disabling device\n", pci->irq);
|
||||||
snd_card_disconnect(card);
|
snd_card_disconnect(card);
|
||||||
@ -3106,7 +3106,7 @@ static int __devinit snd_intel8x0_create(struct snd_card *card,
|
|||||||
|
|
||||||
/* request irq after initializaing int_sta_mask, etc */
|
/* request irq after initializaing int_sta_mask, etc */
|
||||||
if (request_irq(pci->irq, snd_intel8x0_interrupt,
|
if (request_irq(pci->irq, snd_intel8x0_interrupt,
|
||||||
IRQF_SHARED, card->shortname, chip)) {
|
IRQF_SHARED, KBUILD_MODNAME, chip)) {
|
||||||
snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
|
snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
|
||||||
snd_intel8x0_free(chip);
|
snd_intel8x0_free(chip);
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
|
@ -1047,7 +1047,7 @@ static int intel8x0m_resume(struct pci_dev *pci)
|
|||||||
}
|
}
|
||||||
pci_set_master(pci);
|
pci_set_master(pci);
|
||||||
if (request_irq(pci->irq, snd_intel8x0m_interrupt,
|
if (request_irq(pci->irq, snd_intel8x0m_interrupt,
|
||||||
IRQF_SHARED, card->shortname, chip)) {
|
IRQF_SHARED, KBUILD_MODNAME, chip)) {
|
||||||
printk(KERN_ERR "intel8x0m: unable to grab IRQ %d, "
|
printk(KERN_ERR "intel8x0m: unable to grab IRQ %d, "
|
||||||
"disabling device\n", pci->irq);
|
"disabling device\n", pci->irq);
|
||||||
snd_card_disconnect(card);
|
snd_card_disconnect(card);
|
||||||
@ -1174,7 +1174,7 @@ static int __devinit snd_intel8x0m_create(struct snd_card *card,
|
|||||||
|
|
||||||
port_inited:
|
port_inited:
|
||||||
if (request_irq(pci->irq, snd_intel8x0m_interrupt, IRQF_SHARED,
|
if (request_irq(pci->irq, snd_intel8x0m_interrupt, IRQF_SHARED,
|
||||||
card->shortname, chip)) {
|
KBUILD_MODNAME, chip)) {
|
||||||
snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
|
snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
|
||||||
snd_intel8x0m_free(chip);
|
snd_intel8x0m_free(chip);
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
|
@ -2241,7 +2241,7 @@ static int __devinit snd_korg1212_create(struct snd_card *card, struct pci_dev *
|
|||||||
|
|
||||||
err = request_irq(pci->irq, snd_korg1212_interrupt,
|
err = request_irq(pci->irq, snd_korg1212_interrupt,
|
||||||
IRQF_SHARED,
|
IRQF_SHARED,
|
||||||
"korg1212", korg1212);
|
KBUILD_MODNAME, korg1212);
|
||||||
|
|
||||||
if (err) {
|
if (err) {
|
||||||
snd_printk(KERN_ERR "korg1212: unable to grab IRQ %d\n", pci->irq);
|
snd_printk(KERN_ERR "korg1212: unable to grab IRQ %d\n", pci->irq);
|
||||||
|
@ -648,7 +648,7 @@ static int __devinit lola_create(struct snd_card *card, struct pci_dev *pci,
|
|||||||
goto errout;
|
goto errout;
|
||||||
|
|
||||||
if (request_irq(pci->irq, lola_interrupt, IRQF_SHARED,
|
if (request_irq(pci->irq, lola_interrupt, IRQF_SHARED,
|
||||||
DRVNAME, chip)) {
|
KBUILD_MODNAME, chip)) {
|
||||||
printk(KERN_ERR SFX "unable to grab IRQ %d\n", pci->irq);
|
printk(KERN_ERR SFX "unable to grab IRQ %d\n", pci->irq);
|
||||||
err = -EBUSY;
|
err = -EBUSY;
|
||||||
goto errout;
|
goto errout;
|
||||||
|
@ -1031,7 +1031,7 @@ static int __devinit snd_lx6464es_create(struct snd_card *card,
|
|||||||
chip->port_dsp_bar = pci_ioremap_bar(pci, 2);
|
chip->port_dsp_bar = pci_ioremap_bar(pci, 2);
|
||||||
|
|
||||||
err = request_irq(pci->irq, lx_interrupt, IRQF_SHARED,
|
err = request_irq(pci->irq, lx_interrupt, IRQF_SHARED,
|
||||||
card_name, chip);
|
KBUILD_MODNAME, chip);
|
||||||
if (err) {
|
if (err) {
|
||||||
snd_printk(KERN_ERR LXP "unable to grab IRQ %d\n", pci->irq);
|
snd_printk(KERN_ERR LXP "unable to grab IRQ %d\n", pci->irq);
|
||||||
goto request_irq_failed;
|
goto request_irq_failed;
|
||||||
|
@ -2757,7 +2757,7 @@ snd_m3_create(struct snd_card *card, struct pci_dev *pci,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (request_irq(pci->irq, snd_m3_interrupt, IRQF_SHARED,
|
if (request_irq(pci->irq, snd_m3_interrupt, IRQF_SHARED,
|
||||||
card->driver, chip)) {
|
KBUILD_MODNAME, chip)) {
|
||||||
snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
|
snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
|
||||||
snd_m3_free(chip);
|
snd_m3_free(chip);
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
@ -1268,7 +1268,7 @@ static int __devinit snd_mixart_probe(struct pci_dev *pci,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (request_irq(pci->irq, snd_mixart_interrupt, IRQF_SHARED,
|
if (request_irq(pci->irq, snd_mixart_interrupt, IRQF_SHARED,
|
||||||
CARD_NAME, mgr)) {
|
KBUILD_MODNAME, mgr)) {
|
||||||
snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
|
snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
|
||||||
snd_mixart_free(mgr);
|
snd_mixart_free(mgr);
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
|
@ -465,7 +465,7 @@ static int snd_nm256_acquire_irq(struct nm256 *chip)
|
|||||||
mutex_lock(&chip->irq_mutex);
|
mutex_lock(&chip->irq_mutex);
|
||||||
if (chip->irq < 0) {
|
if (chip->irq < 0) {
|
||||||
if (request_irq(chip->pci->irq, chip->interrupt, IRQF_SHARED,
|
if (request_irq(chip->pci->irq, chip->interrupt, IRQF_SHARED,
|
||||||
chip->card->driver, chip)) {
|
KBUILD_MODNAME, chip)) {
|
||||||
snd_printk(KERN_ERR "unable to grab IRQ %d\n", chip->pci->irq);
|
snd_printk(KERN_ERR "unable to grab IRQ %d\n", chip->pci->irq);
|
||||||
mutex_unlock(&chip->irq_mutex);
|
mutex_unlock(&chip->irq_mutex);
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
|
@ -655,7 +655,7 @@ int oxygen_pci_probe(struct pci_dev *pci, int index, char *id,
|
|||||||
chip->model.init(chip);
|
chip->model.init(chip);
|
||||||
|
|
||||||
err = request_irq(pci->irq, oxygen_interrupt, IRQF_SHARED,
|
err = request_irq(pci->irq, oxygen_interrupt, IRQF_SHARED,
|
||||||
DRIVER, chip);
|
KBUILD_MODNAME, chip);
|
||||||
if (err < 0) {
|
if (err < 0) {
|
||||||
snd_printk(KERN_ERR "cannot grab interrupt %d\n", pci->irq);
|
snd_printk(KERN_ERR "cannot grab interrupt %d\n", pci->irq);
|
||||||
goto err_card;
|
goto err_card;
|
||||||
|
@ -1501,7 +1501,7 @@ static int __devinit pcxhr_probe(struct pci_dev *pci,
|
|||||||
mgr->irq = -1;
|
mgr->irq = -1;
|
||||||
|
|
||||||
if (request_irq(pci->irq, pcxhr_interrupt, IRQF_SHARED,
|
if (request_irq(pci->irq, pcxhr_interrupt, IRQF_SHARED,
|
||||||
card_name, mgr)) {
|
KBUILD_MODNAME, mgr)) {
|
||||||
snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
|
snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
|
||||||
pcxhr_free(mgr);
|
pcxhr_free(mgr);
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
|
@ -1890,7 +1890,7 @@ snd_riptide_create(struct snd_card *card, struct pci_dev *pci,
|
|||||||
UNSET_AIE(hwport);
|
UNSET_AIE(hwport);
|
||||||
|
|
||||||
if (request_irq(pci->irq, snd_riptide_interrupt, IRQF_SHARED,
|
if (request_irq(pci->irq, snd_riptide_interrupt, IRQF_SHARED,
|
||||||
"RIPTIDE", chip)) {
|
KBUILD_MODNAME, chip)) {
|
||||||
snd_printk(KERN_ERR "Riptide: unable to grab IRQ %d\n",
|
snd_printk(KERN_ERR "Riptide: unable to grab IRQ %d\n",
|
||||||
pci->irq);
|
pci->irq);
|
||||||
snd_riptide_free(chip);
|
snd_riptide_free(chip);
|
||||||
|
@ -1355,7 +1355,7 @@ static int __devinit snd_rme32_create(struct rme32 * rme32)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (request_irq(pci->irq, snd_rme32_interrupt, IRQF_SHARED,
|
if (request_irq(pci->irq, snd_rme32_interrupt, IRQF_SHARED,
|
||||||
"RME32", rme32)) {
|
KBUILD_MODNAME, rme32)) {
|
||||||
snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
|
snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
}
|
}
|
||||||
|
@ -1561,7 +1561,7 @@ snd_rme96_create(struct rme96 *rme96)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (request_irq(pci->irq, snd_rme96_interrupt, IRQF_SHARED,
|
if (request_irq(pci->irq, snd_rme96_interrupt, IRQF_SHARED,
|
||||||
"RME96", rme96)) {
|
KBUILD_MODNAME, rme96)) {
|
||||||
snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
|
snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
}
|
}
|
||||||
|
@ -5482,7 +5482,7 @@ static int __devinit snd_hdsp_create(struct snd_card *card,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (request_irq(pci->irq, snd_hdsp_interrupt, IRQF_SHARED,
|
if (request_irq(pci->irq, snd_hdsp_interrupt, IRQF_SHARED,
|
||||||
"hdsp", hdsp)) {
|
KBUILD_MODNAME, hdsp)) {
|
||||||
snd_printk(KERN_ERR "Hammerfall-DSP: unable to use IRQ %d\n", pci->irq);
|
snd_printk(KERN_ERR "Hammerfall-DSP: unable to use IRQ %d\n", pci->irq);
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
}
|
}
|
||||||
|
@ -6437,7 +6437,7 @@ static int __devinit snd_hdspm_create(struct snd_card *card,
|
|||||||
hdspm->port + io_extent - 1);
|
hdspm->port + io_extent - 1);
|
||||||
|
|
||||||
if (request_irq(pci->irq, snd_hdspm_interrupt,
|
if (request_irq(pci->irq, snd_hdspm_interrupt,
|
||||||
IRQF_SHARED, "hdspm", hdspm)) {
|
IRQF_SHARED, KBUILD_MODNAME, hdspm)) {
|
||||||
snd_printk(KERN_ERR "HDSPM: unable to use IRQ %d\n", pci->irq);
|
snd_printk(KERN_ERR "HDSPM: unable to use IRQ %d\n", pci->irq);
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
}
|
}
|
||||||
|
@ -2479,7 +2479,7 @@ static int __devinit snd_rme9652_create(struct snd_card *card,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (request_irq(pci->irq, snd_rme9652_interrupt, IRQF_SHARED,
|
if (request_irq(pci->irq, snd_rme9652_interrupt, IRQF_SHARED,
|
||||||
"rme9652", rme9652)) {
|
KBUILD_MODNAME, rme9652)) {
|
||||||
snd_printk(KERN_ERR "unable to request IRQ %d\n", pci->irq);
|
snd_printk(KERN_ERR "unable to request IRQ %d\n", pci->irq);
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
}
|
}
|
||||||
|
@ -1235,7 +1235,7 @@ static int sis_resume(struct pci_dev *pci)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (request_irq(pci->irq, sis_interrupt, IRQF_DISABLED|IRQF_SHARED,
|
if (request_irq(pci->irq, sis_interrupt, IRQF_DISABLED|IRQF_SHARED,
|
||||||
card->shortname, sis)) {
|
KBUILD_MODNAME, sis)) {
|
||||||
printk(KERN_ERR "sis7019: unable to regain IRQ %d\n", pci->irq);
|
printk(KERN_ERR "sis7019: unable to regain IRQ %d\n", pci->irq);
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
@ -1341,7 +1341,7 @@ static int __devinit sis_chip_create(struct snd_card *card,
|
|||||||
goto error_out_cleanup;
|
goto error_out_cleanup;
|
||||||
|
|
||||||
if (request_irq(pci->irq, sis_interrupt, IRQF_DISABLED|IRQF_SHARED,
|
if (request_irq(pci->irq, sis_interrupt, IRQF_DISABLED|IRQF_SHARED,
|
||||||
card->shortname, sis)) {
|
KBUILD_MODNAME, sis)) {
|
||||||
printk(KERN_ERR "unable to allocate irq %d\n", sis->irq);
|
printk(KERN_ERR "unable to allocate irq %d\n", sis->irq);
|
||||||
goto error_out_cleanup;
|
goto error_out_cleanup;
|
||||||
}
|
}
|
||||||
|
@ -1294,7 +1294,7 @@ static int __devinit snd_sonicvibes_create(struct snd_card *card,
|
|||||||
sonic->game_port = pci_resource_start(pci, 4);
|
sonic->game_port = pci_resource_start(pci, 4);
|
||||||
|
|
||||||
if (request_irq(pci->irq, snd_sonicvibes_interrupt, IRQF_SHARED,
|
if (request_irq(pci->irq, snd_sonicvibes_interrupt, IRQF_SHARED,
|
||||||
"S3 SonicVibes", sonic)) {
|
KBUILD_MODNAME, sonic)) {
|
||||||
snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
|
snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
|
||||||
snd_sonicvibes_free(sonic);
|
snd_sonicvibes_free(sonic);
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
|
@ -3598,7 +3598,7 @@ int __devinit snd_trident_create(struct snd_card *card,
|
|||||||
trident->port = pci_resource_start(pci, 0);
|
trident->port = pci_resource_start(pci, 0);
|
||||||
|
|
||||||
if (request_irq(pci->irq, snd_trident_interrupt, IRQF_SHARED,
|
if (request_irq(pci->irq, snd_trident_interrupt, IRQF_SHARED,
|
||||||
"Trident Audio", trident)) {
|
KBUILD_MODNAME, trident)) {
|
||||||
snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
|
snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
|
||||||
snd_trident_free(trident);
|
snd_trident_free(trident);
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
|
@ -2377,7 +2377,7 @@ static int __devinit snd_via82xx_create(struct snd_card *card,
|
|||||||
chip_type == TYPE_VIA8233 ?
|
chip_type == TYPE_VIA8233 ?
|
||||||
snd_via8233_interrupt : snd_via686_interrupt,
|
snd_via8233_interrupt : snd_via686_interrupt,
|
||||||
IRQF_SHARED,
|
IRQF_SHARED,
|
||||||
card->driver, chip)) {
|
KBUILD_MODNAME, chip)) {
|
||||||
snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
|
snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
|
||||||
snd_via82xx_free(chip);
|
snd_via82xx_free(chip);
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
|
@ -1129,7 +1129,7 @@ static int __devinit snd_via82xx_create(struct snd_card *card,
|
|||||||
}
|
}
|
||||||
chip->port = pci_resource_start(pci, 0);
|
chip->port = pci_resource_start(pci, 0);
|
||||||
if (request_irq(pci->irq, snd_via82xx_interrupt, IRQF_SHARED,
|
if (request_irq(pci->irq, snd_via82xx_interrupt, IRQF_SHARED,
|
||||||
card->driver, chip)) {
|
KBUILD_MODNAME, chip)) {
|
||||||
snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
|
snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
|
||||||
snd_via82xx_free(chip);
|
snd_via82xx_free(chip);
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
|
@ -169,7 +169,7 @@ static int __devinit snd_vx222_create(struct snd_card *card, struct pci_dev *pci
|
|||||||
vx->port[i] = pci_resource_start(pci, i + 1);
|
vx->port[i] = pci_resource_start(pci, i + 1);
|
||||||
|
|
||||||
if (request_irq(pci->irq, snd_vx_irq_handler, IRQF_SHARED,
|
if (request_irq(pci->irq, snd_vx_irq_handler, IRQF_SHARED,
|
||||||
CARD_NAME, chip)) {
|
KBUILD_MODNAME, chip)) {
|
||||||
snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
|
snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
|
||||||
snd_vx222_free(chip);
|
snd_vx222_free(chip);
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
|
@ -2380,7 +2380,7 @@ int __devinit snd_ymfpci_create(struct snd_card *card,
|
|||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
}
|
}
|
||||||
if (request_irq(pci->irq, snd_ymfpci_interrupt, IRQF_SHARED,
|
if (request_irq(pci->irq, snd_ymfpci_interrupt, IRQF_SHARED,
|
||||||
"YMFPCI", chip)) {
|
KBUILD_MODNAME, chip)) {
|
||||||
snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
|
snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
|
||||||
snd_ymfpci_free(chip);
|
snd_ymfpci_free(chip);
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
|
Loading…
Reference in New Issue
Block a user