提交 e4d76815 编写于 作者: R Randy Dunlap 提交者: Jaroslav Kysela

[ALSA] sound: fix ad1889 section mismatch

Fix section mismatch in ad1889 by renaming the pci_driver variable to a
whitelisted variable name.
WARNING: vmlinux.o(.data+0x2e5ff0): Section mismatch: reference to .init.text:snd_ad1889_probe (between 'ad1889_pci' and 'index')
Signed-off-by: NRandy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
Signed-off-by: NJaroslav Kysela <perex@perex.cz>
上级 e7d7c2e2
...@@ -1054,7 +1054,7 @@ static struct pci_device_id snd_ad1889_ids[] = { ...@@ -1054,7 +1054,7 @@ static struct pci_device_id snd_ad1889_ids[] = {
}; };
MODULE_DEVICE_TABLE(pci, snd_ad1889_ids); MODULE_DEVICE_TABLE(pci, snd_ad1889_ids);
static struct pci_driver ad1889_pci = { static struct pci_driver ad1889_pci_driver = {
.name = "AD1889 Audio", .name = "AD1889 Audio",
.id_table = snd_ad1889_ids, .id_table = snd_ad1889_ids,
.probe = snd_ad1889_probe, .probe = snd_ad1889_probe,
...@@ -1064,13 +1064,13 @@ static struct pci_driver ad1889_pci = { ...@@ -1064,13 +1064,13 @@ static struct pci_driver ad1889_pci = {
static int __init static int __init
alsa_ad1889_init(void) alsa_ad1889_init(void)
{ {
return pci_register_driver(&ad1889_pci); return pci_register_driver(&ad1889_pci_driver);
} }
static void __exit static void __exit
alsa_ad1889_fini(void) alsa_ad1889_fini(void)
{ {
pci_unregister_driver(&ad1889_pci); pci_unregister_driver(&ad1889_pci_driver);
} }
module_init(alsa_ad1889_init); module_init(alsa_ad1889_init);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册