Skip to content

Commit

Permalink
hostap: section mismatch warning
Browse files Browse the repository at this point in the history
Fix section mismatch by changing variable name to match one of the
whitelisted (allowable) names for pointing into init data:

WARNING: vmlinux.o(.data+0xce618): Section mismatch: reference to .init.data:prism2_plx_id_table (between 'prism2_plx_drv_id' and 'dev_info')

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Randy Dunlap authored and John W. Linville committed Jan 16, 2008
1 parent cbd9c88 commit e52742d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/net/wireless/hostap/hostap_plx.c
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ static void prism2_plx_remove(struct pci_dev *pdev)

MODULE_DEVICE_TABLE(pci, prism2_plx_id_table);

static struct pci_driver prism2_plx_drv_id = {
static struct pci_driver prism2_plx_driver = {
.name = "hostap_plx",
.id_table = prism2_plx_id_table,
.probe = prism2_plx_probe,
Expand All @@ -618,13 +618,13 @@ static struct pci_driver prism2_plx_drv_id = {

static int __init init_prism2_plx(void)
{
return pci_register_driver(&prism2_plx_drv_id);
return pci_register_driver(&prism2_plx_driver);
}


static void __exit exit_prism2_plx(void)
{
pci_unregister_driver(&prism2_plx_drv_id);
pci_unregister_driver(&prism2_plx_driver);
}


Expand Down

0 comments on commit e52742d

Please sign in to comment.