summaryrefslogtreecommitdiff
path: root/drivers/input/gameport/emu10k1-gp.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2012-04-22 06:37:53 (GMT)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2012-04-22 06:48:58 (GMT)
commit5d066474cd64a5877391e3711e8c7973e6478cc8 (patch)
tree21d1ee939246dd3999f0459c345acc76cb3435ff /drivers/input/gameport/emu10k1-gp.c
parent57b8628bb0ac4e47c806e45c5bbd89282e93869b (diff)
downloadlinux-5d066474cd64a5877391e3711e8c7973e6478cc8.tar.xz
Input: use module_pci_driver
This patch converts the drivers in drivers/input/* to use module_pci_driver() macro which makes the code smaller and a bit simpler. Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/gameport/emu10k1-gp.c')
-rw-r--r--drivers/input/gameport/emu10k1-gp.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/input/gameport/emu10k1-gp.c b/drivers/input/gameport/emu10k1-gp.c
index 422aa0a..daceafe 100644
--- a/drivers/input/gameport/emu10k1-gp.c
+++ b/drivers/input/gameport/emu10k1-gp.c
@@ -125,15 +125,4 @@ static struct pci_driver emu_driver = {
.remove = __devexit_p(emu_remove),
};
-static int __init emu_init(void)
-{
- return pci_register_driver(&emu_driver);
-}
-
-static void __exit emu_exit(void)
-{
- pci_unregister_driver(&emu_driver);
-}
-
-module_init(emu_init);
-module_exit(emu_exit);
+module_pci_driver(emu_driver);