mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-25 05:34:00 +08:00
net/ethernet/sis/sis190: Use module_pci_driver to register driver
Removing some boilerplate by using module_pci_driver instead of calling register and unregister in the otherwise empty init/exit functions. Signed-off-by: Peter Huewe <peterhuewe@gmx.de> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
c996f4e8f0
commit
52a58f9df1
@ -1934,15 +1934,4 @@ static struct pci_driver sis190_pci_driver = {
|
||||
.remove = sis190_remove_one,
|
||||
};
|
||||
|
||||
static int __init sis190_init_module(void)
|
||||
{
|
||||
return pci_register_driver(&sis190_pci_driver);
|
||||
}
|
||||
|
||||
static void __exit sis190_cleanup_module(void)
|
||||
{
|
||||
pci_unregister_driver(&sis190_pci_driver);
|
||||
}
|
||||
|
||||
module_init(sis190_init_module);
|
||||
module_exit(sis190_cleanup_module);
|
||||
module_pci_driver(sis190_pci_driver);
|
||||
|
Loading…
Reference in New Issue
Block a user