net/can: use module_pci_driver
This patch converts the drivers in drivers/net/can/* to use module_pci_driver() macro which makes the code smaller and a bit simpler. Signed-off-by: Axel Lin <axel.lin@gmail.com> Cc: Wolfgang Grandegger <wg@grandegger.com> Cc: Marc Kleine-Budde <mkl@pengutronix.de> Cc: "David S. Miller" <davem@davemloft.net> Cc: linux-can@vger.kernel.org Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
This commit is contained in:

committed by
Marc Kleine-Budde

parent
a75afd4770
commit
fb7944b369
@@ -749,14 +749,4 @@ static struct pci_driver peak_pci_driver = {
|
||||
.remove = __devexit_p(peak_pci_remove),
|
||||
};
|
||||
|
||||
static int __init peak_pci_init(void)
|
||||
{
|
||||
return pci_register_driver(&peak_pci_driver);
|
||||
}
|
||||
module_init(peak_pci_init);
|
||||
|
||||
static void __exit peak_pci_exit(void)
|
||||
{
|
||||
pci_unregister_driver(&peak_pci_driver);
|
||||
}
|
||||
module_exit(peak_pci_exit);
|
||||
module_pci_driver(peak_pci_driver);
|
||||
|
Reference in New Issue
Block a user