Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

hostap: section mismatch warning

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>

authored by

Randy Dunlap and committed by
John W. Linville
e52742de cbd9c883

+3 -3
+3 -3
drivers/net/wireless/hostap/hostap_plx.c
··· 608 608 609 609 MODULE_DEVICE_TABLE(pci, prism2_plx_id_table); 610 610 611 - static struct pci_driver prism2_plx_drv_id = { 611 + static struct pci_driver prism2_plx_driver = { 612 612 .name = "hostap_plx", 613 613 .id_table = prism2_plx_id_table, 614 614 .probe = prism2_plx_probe, ··· 618 618 619 619 static int __init init_prism2_plx(void) 620 620 { 621 - return pci_register_driver(&prism2_plx_drv_id); 621 + return pci_register_driver(&prism2_plx_driver); 622 622 } 623 623 624 624 625 625 static void __exit exit_prism2_plx(void) 626 626 { 627 - pci_unregister_driver(&prism2_plx_drv_id); 627 + pci_unregister_driver(&prism2_plx_driver); 628 628 } 629 629 630 630