mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-18 23:18:20 +00:00
NetXen: Use pci_register_driver() instead of pci_module_init() in init_module
This will use pci_register_driver() instead of pci_module_init(). Signed-off-by: Amit S. Kale <amitkale@netxen.com> Signed-off-by: Richard Knutsson <ricknu-0@student.ltu.se> Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
parent
90f8b1d295
commit
184231bdb4
@ -63,7 +63,7 @@
|
||||
|
||||
#include "netxen_nic_hw.h"
|
||||
|
||||
#define NETXEN_NIC_BUILD_NO "1"
|
||||
#define NETXEN_NIC_BUILD_NO "2"
|
||||
#define _NETXEN_NIC_LINUX_MAJOR 3
|
||||
#define _NETXEN_NIC_LINUX_MINOR 3
|
||||
#define _NETXEN_NIC_LINUX_SUBVERSION 3
|
||||
|
@ -1144,7 +1144,7 @@ static int __init netxen_init_module(void)
|
||||
if ((netxen_workq = create_singlethread_workqueue("netxen")) == 0)
|
||||
return -ENOMEM;
|
||||
|
||||
return pci_module_init(&netxen_driver);
|
||||
return pci_register_driver(&netxen_driver);
|
||||
}
|
||||
|
||||
module_init(netxen_init_module);
|
||||
|
Loading…
Reference in New Issue
Block a user