]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
hostap: section mismatch warning
authorRandy Dunlap <randy.dunlap@oracle.com>
Thu, 10 Jan 2008 22:31:30 +0000 (14:31 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 16 Jan 2008 17:53:32 +0000 (12:53 -0500)
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>
drivers/net/wireless/hostap/hostap_plx.c

index 040dc3e364101162bd3e7b511e3527758c1dab65..cbf15d703201f15dc323bffcd9461fd974fb4e1f 100644 (file)
@@ -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,
@@ -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);
 }