parisc/superio: Use module_pci_driver to register driver

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>
This commit is contained in:
Peter Huewe 2013-05-20 20:56:45 +00:00 committed by Helge Deller
parent b63a2bbc0b
commit 2c2d32bed1
1 changed files with 1 additions and 12 deletions

View File

@ -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);