Skip to content

Commit

Permalink
net/fddi/skfp/skfddi: Use module_pci_driver to register driver
Browse files Browse the repository at this point in the history
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 <peterhuewe@gmx.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Peter Hüwe authored and David S. Miller committed May 22, 2013
1 parent ff71505 commit 30d05f9
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions drivers/net/fddi/skfp/skfddi.c
Original file line number Diff line number Diff line change
Expand Up @@ -2246,15 +2246,4 @@ static struct pci_driver skfddi_pci_driver = {
.remove = skfp_remove_one,
};

static int __init skfd_init(void)
{
return pci_register_driver(&skfddi_pci_driver);
}

static void __exit skfd_exit(void)
{
pci_unregister_driver(&skfddi_pci_driver);
}

module_init(skfd_init);
module_exit(skfd_exit);
module_pci_driver(skfddi_pci_driver);

0 comments on commit 30d05f9

Please sign in to comment.