From: Peter Hüwe Date: Tue, 21 May 2013 12:42:13 +0000 (+0000) Subject: net/ethernet/icplus/ipg: Use module_pci_driver to register driver X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=43d426c3f938b9ac21f452fcd22956ed2f526f4f;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git net/ethernet/icplus/ipg: 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/icplus/ipg.c b/drivers/net/ethernet/icplus/ipg.c index 068d78151658..1fde90b96685 100644 --- a/drivers/net/ethernet/icplus/ipg.c +++ b/drivers/net/ethernet/icplus/ipg.c @@ -2298,15 +2298,4 @@ static struct pci_driver ipg_pci_driver = { .remove = ipg_remove, }; -static int __init ipg_init_module(void) -{ - return pci_register_driver(&ipg_pci_driver); -} - -static void __exit ipg_exit_module(void) -{ - pci_unregister_driver(&ipg_pci_driver); -} - -module_init(ipg_init_module); -module_exit(ipg_exit_module); +module_pci_driver(ipg_pci_driver);