mirror of
https://github.com/proski/madwifi
synced 2024-11-22 06:21:47 +03:00
Fix section mismatch warning in forthcoming Linux 2.6.25
Section mismatch checker in the forthcoming Linux 2.6.25 complains about ath_pci_drv_id and recommends to rename it. Rename ath_pci_drv_id to ath_pci_driver, which is consistent with other PCI drivers. git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3312 0192ed92-7a03-0410-a25b-9323aeb14dbd
This commit is contained in:
parent
0ad2c8981a
commit
99b36fbd0f
@ -332,7 +332,7 @@ ath_pci_resume(struct pci_dev *pdev)
|
||||
|
||||
MODULE_DEVICE_TABLE(pci, ath_pci_id_table);
|
||||
|
||||
static struct pci_driver ath_pci_drv_id = {
|
||||
static struct pci_driver ath_pci_driver = {
|
||||
.name = "ath_pci",
|
||||
.id_table = ath_pci_id_table,
|
||||
.probe = ath_pci_probe,
|
||||
@ -378,7 +378,7 @@ init_ath_pci(void)
|
||||
{
|
||||
printk(KERN_INFO "%s: %s\n", dev_info, version);
|
||||
|
||||
if (pci_register_driver(&ath_pci_drv_id) < 0) {
|
||||
if (pci_register_driver(&ath_pci_driver) < 0) {
|
||||
printk(KERN_ERR "%s: No devices found, driver not installed.\n", dev_info);
|
||||
return (-ENODEV);
|
||||
}
|
||||
@ -391,7 +391,7 @@ static void __exit
|
||||
exit_ath_pci(void)
|
||||
{
|
||||
ath_sysctl_unregister();
|
||||
pci_unregister_driver(&ath_pci_drv_id);
|
||||
pci_unregister_driver(&ath_pci_driver);
|
||||
|
||||
printk(KERN_INFO "%s: driver unloaded\n", dev_info);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user