aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/input/gameport/emu10k1-gp.c13
-rw-r--r--drivers/input/gameport/fm801-gp.c16
-rw-r--r--drivers/input/serio/pcips2.c15
3 files changed, 5 insertions, 39 deletions
diff --git a/drivers/input/gameport/emu10k1-gp.c b/drivers/input/gameport/emu10k1-gp.c
index 422aa0a6b77f..daceafe7ee7d 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 = {
125 .remove = __devexit_p(emu_remove), 125 .remove = __devexit_p(emu_remove),
126}; 126};
127 127
128static int __init emu_init(void) 128module_pci_driver(emu_driver);
129{
130 return pci_register_driver(&emu_driver);
131}
132
133static void __exit emu_exit(void)
134{
135 pci_unregister_driver(&emu_driver);
136}
137
138module_init(emu_init);
139module_exit(emu_exit);
diff --git a/drivers/input/gameport/fm801-gp.c b/drivers/input/gameport/fm801-gp.c
index a3b70ff21018..48ad3829ff20 100644
--- a/drivers/input/gameport/fm801-gp.c
+++ b/drivers/input/gameport/fm801-gp.c
@@ -144,6 +144,7 @@ static const struct pci_device_id fm801_gp_id_table[] = {
144 { PCI_VENDOR_ID_FORTEMEDIA, PCI_DEVICE_ID_FM801_GP, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, 144 { PCI_VENDOR_ID_FORTEMEDIA, PCI_DEVICE_ID_FM801_GP, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },
145 { 0 } 145 { 0 }
146}; 146};
147MODULE_DEVICE_TABLE(pci, fm801_gp_id_table);
147 148
148static struct pci_driver fm801_gp_driver = { 149static struct pci_driver fm801_gp_driver = {
149 .name = "FM801_gameport", 150 .name = "FM801_gameport",
@@ -152,20 +153,7 @@ static struct pci_driver fm801_gp_driver = {
152 .remove = __devexit_p(fm801_gp_remove), 153 .remove = __devexit_p(fm801_gp_remove),
153}; 154};
154 155
155static int __init fm801_gp_init(void) 156module_pci_driver(fm801_gp_driver);
156{
157 return pci_register_driver(&fm801_gp_driver);
158}
159
160static void __exit fm801_gp_exit(void)
161{
162 pci_unregister_driver(&fm801_gp_driver);
163}
164
165module_init(fm801_gp_init);
166module_exit(fm801_gp_exit);
167
168MODULE_DEVICE_TABLE(pci, fm801_gp_id_table);
169 157
170MODULE_DESCRIPTION("FM801 gameport driver"); 158MODULE_DESCRIPTION("FM801 gameport driver");
171MODULE_AUTHOR("Takashi Iwai <tiwai@suse.de>"); 159MODULE_AUTHOR("Takashi Iwai <tiwai@suse.de>");
diff --git a/drivers/input/serio/pcips2.c b/drivers/input/serio/pcips2.c
index 43494742541c..0c42497aaaf4 100644
--- a/drivers/input/serio/pcips2.c
+++ b/drivers/input/serio/pcips2.c
@@ -206,6 +206,7 @@ static const struct pci_device_id pcips2_ids[] = {
206 }, 206 },
207 { 0, } 207 { 0, }
208}; 208};
209MODULE_DEVICE_TABLE(pci, pcips2_ids);
209 210
210static struct pci_driver pcips2_driver = { 211static struct pci_driver pcips2_driver = {
211 .name = "pcips2", 212 .name = "pcips2",
@@ -214,20 +215,8 @@ static struct pci_driver pcips2_driver = {
214 .remove = __devexit_p(pcips2_remove), 215 .remove = __devexit_p(pcips2_remove),
215}; 216};
216 217
217static int __init pcips2_init(void) 218module_pci_driver(pcips2_driver);
218{
219 return pci_register_driver(&pcips2_driver);
220}
221
222static void __exit pcips2_exit(void)
223{
224 pci_unregister_driver(&pcips2_driver);
225}
226
227module_init(pcips2_init);
228module_exit(pcips2_exit);
229 219
230MODULE_LICENSE("GPL"); 220MODULE_LICENSE("GPL");
231MODULE_AUTHOR("Russell King <rmk@arm.linux.org.uk>"); 221MODULE_AUTHOR("Russell King <rmk@arm.linux.org.uk>");
232MODULE_DESCRIPTION("PCI PS/2 keyboard/mouse driver"); 222MODULE_DESCRIPTION("PCI PS/2 keyboard/mouse driver");
233MODULE_DEVICE_TABLE(pci, pcips2_ids);