ALSA: Update document for using KBUILD_MODNAME
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
934c2b6d0c
commit
ce1fd36932
|
@ -1164,7 +1164,7 @@
|
||||||
}
|
}
|
||||||
chip->port = pci_resource_start(pci, 0);
|
chip->port = pci_resource_start(pci, 0);
|
||||||
if (request_irq(pci->irq, snd_mychip_interrupt,
|
if (request_irq(pci->irq, snd_mychip_interrupt,
|
||||||
IRQF_SHARED, "My Chip", chip)) {
|
IRQF_SHARED, KBUILD_MODNAME, chip)) {
|
||||||
printk(KERN_ERR "cannot grab irq %d\n", pci->irq);
|
printk(KERN_ERR "cannot grab irq %d\n", pci->irq);
|
||||||
snd_mychip_free(chip);
|
snd_mychip_free(chip);
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
|
@ -1197,7 +1197,7 @@
|
||||||
|
|
||||||
/* pci_driver definition */
|
/* pci_driver definition */
|
||||||
static struct pci_driver driver = {
|
static struct pci_driver driver = {
|
||||||
.name = "My Own Chip",
|
.name = KBUILD_MODNAME,
|
||||||
.id_table = snd_mychip_ids,
|
.id_table = snd_mychip_ids,
|
||||||
.probe = snd_mychip_probe,
|
.probe = snd_mychip_probe,
|
||||||
.remove = __devexit_p(snd_mychip_remove),
|
.remove = __devexit_p(snd_mychip_remove),
|
||||||
|
@ -1340,7 +1340,7 @@
|
||||||
<programlisting>
|
<programlisting>
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
if (request_irq(pci->irq, snd_mychip_interrupt,
|
if (request_irq(pci->irq, snd_mychip_interrupt,
|
||||||
IRQF_SHARED, "My Chip", chip)) {
|
IRQF_SHARED, KBUILD_MODNAME, chip)) {
|
||||||
printk(KERN_ERR "cannot grab irq %d\n", pci->irq);
|
printk(KERN_ERR "cannot grab irq %d\n", pci->irq);
|
||||||
snd_mychip_free(chip);
|
snd_mychip_free(chip);
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
|
@ -1616,7 +1616,7 @@
|
||||||
<programlisting>
|
<programlisting>
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
static struct pci_driver driver = {
|
static struct pci_driver driver = {
|
||||||
.name = "My Own Chip",
|
.name = KBUILD_MODNAME,
|
||||||
.id_table = snd_mychip_ids,
|
.id_table = snd_mychip_ids,
|
||||||
.probe = snd_mychip_probe,
|
.probe = snd_mychip_probe,
|
||||||
.remove = __devexit_p(snd_mychip_remove),
|
.remove = __devexit_p(snd_mychip_remove),
|
||||||
|
@ -5816,7 +5816,7 @@ struct _snd_pcm_runtime {
|
||||||
<programlisting>
|
<programlisting>
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
static struct pci_driver driver = {
|
static struct pci_driver driver = {
|
||||||
.name = "My Chip",
|
.name = KBUILD_MODNAME,
|
||||||
.id_table = snd_my_ids,
|
.id_table = snd_my_ids,
|
||||||
.probe = snd_my_probe,
|
.probe = snd_my_probe,
|
||||||
.remove = __devexit_p(snd_my_remove),
|
.remove = __devexit_p(snd_my_remove),
|
||||||
|
|
Loading…
Reference in New Issue