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

Commit a1b13b9a authored by Gabor Juhos's avatar Gabor Juhos Committed by John W. Linville
Browse files

rt2x00: rt2800pci: use module_pci_driver macro



Use the module_pci_driver() macro to make the code simpler
by eliminating module_init and module_exit calls.

Signed-off-by: default avatarGabor Juhos <juhosg@openwrt.org>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent fe7ef7c6
Loading
Loading
Loading
Loading
+1 −13
Original line number Diff line number Diff line
@@ -470,16 +470,4 @@ static struct pci_driver rt2800pci_driver = {
	.resume		= rt2x00pci_resume,
};


static int __init rt2800pci_init(void)
{
	return pci_register_driver(&rt2800pci_driver);
}

static void __exit rt2800pci_exit(void)
{
	pci_unregister_driver(&rt2800pci_driver);
}

module_init(rt2800pci_init);
module_exit(rt2800pci_exit);
module_pci_driver(rt2800pci_driver);