Skip to content

Commit

Permalink
[ALSA] sound: fix ad1889 section mismatch
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
Signed-off-by: Jaroslav Kysela <[email protected]>
  • Loading branch information
rddunlap authored and perexg committed Jan 31, 2008
1 parent e7d7c2e commit e4d7681
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sound/pci/ad1889.c
Original file line number Diff line number Diff line change
Expand Up @@ -1054,7 +1054,7 @@ static struct pci_device_id 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",
.id_table = snd_ad1889_ids,
.probe = snd_ad1889_probe,
Expand All @@ -1064,13 +1064,13 @@ static struct pci_driver ad1889_pci = {
static int __init
alsa_ad1889_init(void)
{
return pci_register_driver(&ad1889_pci);
return pci_register_driver(&ad1889_pci_driver);
}

static void __exit
alsa_ad1889_fini(void)
{
pci_unregister_driver(&ad1889_pci);
pci_unregister_driver(&ad1889_pci_driver);
}

module_init(alsa_ad1889_init);
Expand Down

0 comments on commit e4d7681

Please sign in to comment.