Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 61c95150 authored by Peter Hüwe's avatar Peter Hüwe Committed by David S. Miller
Browse files

net/ethernet/silan/sc92031: 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: default avatarPeter Huewe <peterhuewe@gmx.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 31400fe3
Loading
Loading
Loading
Loading
+1 −13
Original line number Diff line number Diff line
@@ -1578,19 +1578,7 @@ static struct pci_driver sc92031_pci_driver = {
	.resume		= sc92031_resume,
};

static int __init sc92031_init(void)
{
	return pci_register_driver(&sc92031_pci_driver);
}

static void __exit sc92031_exit(void)
{
	pci_unregister_driver(&sc92031_pci_driver);
}

module_init(sc92031_init);
module_exit(sc92031_exit);

module_pci_driver(sc92031_pci_driver);
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Cesar Eduardo Barros <cesarb@cesarb.net>");
MODULE_DESCRIPTION("Silan SC92031 PCI Fast Ethernet Adapter driver");