aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/parisc
diff options
context:
space:
mode:
authorPeter Huewe <PeterHuewe@gmx.de>2013-05-20 20:56:45 +0000
committerHelge Deller <deller@gmx.de>2013-05-24 22:35:46 +0200
commit2c2d32bed1a1bb6121494965b31badb280f04b0e (patch)
treec9423288585b1bc5b95e3393dd7e1971256f225d /drivers/parisc
parentb63a2bbc0b9b106a93e11952ab057e2408f2eb02 (diff)
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>
Diffstat (limited to 'drivers/parisc')
-rw-r--r--drivers/parisc/superio.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/parisc/superio.c b/drivers/parisc/superio.c
index ac6e8e7a02df..a042d065a0c7 100644
--- a/drivers/parisc/superio.c
+++ b/drivers/parisc/superio.c
@@ -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);

Privacy Policy