Skip to content

Commit

Permalink
parisc/superio: 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: Helge Deller <deller@gmx.de>
  • Loading branch information
Peter Huewe authored and Helge Deller committed May 24, 2013
1 parent b63a2bb commit 2c2d32b
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions drivers/parisc/superio.c
Original file line number Diff line number Diff line change
Expand Up @@ -494,15 +494,4 @@ static struct pci_driver superio_driver = {
.probe = superio_probe,
};

static int __init superio_modinit(void)
{
return pci_register_driver(&superio_driver);
}

static void __exit superio_exit(void)
{
pci_unregister_driver(&superio_driver);
}

module_init(superio_modinit);
module_exit(superio_exit);
module_pci_driver(superio_driver);

0 comments on commit 2c2d32b

Please sign in to comment.