Commit e4d76815c2d6477f4b77f1c7dbfbde113af89e67

Authored by Randy Dunlap
Committed by Jaroslav Kysela
1 parent e7d7c2e288

[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: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>

Showing 1 changed file with 3 additions and 3 deletions Side-by-side Diff

... ... @@ -1054,7 +1054,7 @@
1054 1054 };
1055 1055 MODULE_DEVICE_TABLE(pci, snd_ad1889_ids);
1056 1056  
1057   -static struct pci_driver ad1889_pci = {
  1057 +static struct pci_driver ad1889_pci_driver = {
1058 1058 .name = "AD1889 Audio",
1059 1059 .id_table = snd_ad1889_ids,
1060 1060 .probe = snd_ad1889_probe,
1061 1061  
... ... @@ -1064,13 +1064,13 @@
1064 1064 static int __init
1065 1065 alsa_ad1889_init(void)
1066 1066 {
1067   - return pci_register_driver(&ad1889_pci);
  1067 + return pci_register_driver(&ad1889_pci_driver);
1068 1068 }
1069 1069  
1070 1070 static void __exit
1071 1071 alsa_ad1889_fini(void)
1072 1072 {
1073   - pci_unregister_driver(&ad1889_pci);
  1073 + pci_unregister_driver(&ad1889_pci_driver);
1074 1074 }
1075 1075  
1076 1076 module_init(alsa_ad1889_init);