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

Commit 3eeb7da9 authored by Devendra Naga's avatar Devendra Naga Committed by David S. Miller
Browse files

realtek: r8169: use module_pci_driver macro



use the module_pci_driver macro to make the code simpler
by eliminating the module_init and module_exit calls

Signed-off-by: default avatarDevendra Naga <devendra.aaru@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 15708381
Loading
Loading
Loading
Loading
+1 −12
Original line number Original line Diff line number Diff line
@@ -7023,15 +7023,4 @@ static struct pci_driver rtl8169_pci_driver = {
	.driver.pm	= RTL8169_PM_OPS,
	.driver.pm	= RTL8169_PM_OPS,
};
};


static int __init rtl8169_init_module(void)
module_pci_driver(rtl8169_pci_driver);
{
	return pci_register_driver(&rtl8169_pci_driver);
}

static void __exit rtl8169_cleanup_module(void)
{
	pci_unregister_driver(&rtl8169_pci_driver);
}

module_init(rtl8169_init_module);
module_exit(rtl8169_cleanup_module);