提交 2493d8e4 编写于 作者: R Randy Dunlap 提交者: Jeff Garzik

hostap: fix section mismatch warning

Fix section mismatch warning:

WARNING: vmlinux.o(.data+0x36fcc): Section mismatch: reference to .init.data:prism2_pci_id_table (between 'prism2_pci_drv_id' and 'prism2_pci_funcs')
Signed-off-by: NRandy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 453a3fb9
...@@ -444,7 +444,7 @@ static int prism2_pci_resume(struct pci_dev *pdev) ...@@ -444,7 +444,7 @@ static int prism2_pci_resume(struct pci_dev *pdev)
MODULE_DEVICE_TABLE(pci, prism2_pci_id_table); MODULE_DEVICE_TABLE(pci, prism2_pci_id_table);
static struct pci_driver prism2_pci_drv_id = { static struct pci_driver prism2_pci_driver = {
.name = "hostap_pci", .name = "hostap_pci",
.id_table = prism2_pci_id_table, .id_table = prism2_pci_id_table,
.probe = prism2_pci_probe, .probe = prism2_pci_probe,
...@@ -458,13 +458,13 @@ static struct pci_driver prism2_pci_drv_id = { ...@@ -458,13 +458,13 @@ static struct pci_driver prism2_pci_drv_id = {
static int __init init_prism2_pci(void) static int __init init_prism2_pci(void)
{ {
return pci_register_driver(&prism2_pci_drv_id); return pci_register_driver(&prism2_pci_driver);
} }
static void __exit exit_prism2_pci(void) static void __exit exit_prism2_pci(void)
{ {
pci_unregister_driver(&prism2_pci_drv_id); pci_unregister_driver(&prism2_pci_driver);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册