diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2008-05-06 12:11:29 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2008-05-16 14:50:42 -0400 |
commit | 3e582db0783872a645f5236ef142be6579b300ad (patch) | |
tree | a0249ae35f2e88affefd2426d6c6dbd5ec77169b /drivers/input/gameport | |
parent | 2ff98147847de3d27d7aa174d58467d21fe372aa (diff) |
Input: gameport - remove rescan/reconnect facilities
They have never been used and are unlikely to be used in the future
so remove them altogether.
Reported-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/gameport')
-rw-r--r-- | drivers/input/gameport/gameport.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/drivers/input/gameport/gameport.c b/drivers/input/gameport/gameport.c index c5600ac5feb3..078e4eed0894 100644 --- a/drivers/input/gameport/gameport.c +++ b/drivers/input/gameport/gameport.c | |||
@@ -36,7 +36,6 @@ EXPORT_SYMBOL(__gameport_register_driver); | |||
36 | EXPORT_SYMBOL(gameport_unregister_driver); | 36 | EXPORT_SYMBOL(gameport_unregister_driver); |
37 | EXPORT_SYMBOL(gameport_open); | 37 | EXPORT_SYMBOL(gameport_open); |
38 | EXPORT_SYMBOL(gameport_close); | 38 | EXPORT_SYMBOL(gameport_close); |
39 | EXPORT_SYMBOL(gameport_rescan); | ||
40 | EXPORT_SYMBOL(gameport_set_phys); | 39 | EXPORT_SYMBOL(gameport_set_phys); |
41 | EXPORT_SYMBOL(gameport_start_polling); | 40 | EXPORT_SYMBOL(gameport_start_polling); |
42 | EXPORT_SYMBOL(gameport_stop_polling); | 41 | EXPORT_SYMBOL(gameport_stop_polling); |
@@ -230,8 +229,6 @@ static void gameport_find_driver(struct gameport *gameport) | |||
230 | */ | 229 | */ |
231 | 230 | ||
232 | enum gameport_event_type { | 231 | enum gameport_event_type { |
233 | GAMEPORT_RESCAN, | ||
234 | GAMEPORT_RECONNECT, | ||
235 | GAMEPORT_REGISTER_PORT, | 232 | GAMEPORT_REGISTER_PORT, |
236 | GAMEPORT_REGISTER_DRIVER, | 233 | GAMEPORT_REGISTER_DRIVER, |
237 | }; | 234 | }; |
@@ -365,15 +362,6 @@ static void gameport_handle_event(void) | |||
365 | gameport_add_port(event->object); | 362 | gameport_add_port(event->object); |
366 | break; | 363 | break; |
367 | 364 | ||
368 | case GAMEPORT_RECONNECT: | ||
369 | gameport_reconnect_port(event->object); | ||
370 | break; | ||
371 | |||
372 | case GAMEPORT_RESCAN: | ||
373 | gameport_disconnect_port(event->object); | ||
374 | gameport_find_driver(event->object); | ||
375 | break; | ||
376 | |||
377 | case GAMEPORT_REGISTER_DRIVER: | 365 | case GAMEPORT_REGISTER_DRIVER: |
378 | gameport_add_driver(event->object); | 366 | gameport_add_driver(event->object); |
379 | break; | 367 | break; |
@@ -651,16 +639,6 @@ static void gameport_disconnect_port(struct gameport *gameport) | |||
651 | device_release_driver(&gameport->dev); | 639 | device_release_driver(&gameport->dev); |
652 | } | 640 | } |
653 | 641 | ||
654 | void gameport_rescan(struct gameport *gameport) | ||
655 | { | ||
656 | gameport_queue_event(gameport, NULL, GAMEPORT_RESCAN); | ||
657 | } | ||
658 | |||
659 | void gameport_reconnect(struct gameport *gameport) | ||
660 | { | ||
661 | gameport_queue_event(gameport, NULL, GAMEPORT_RECONNECT); | ||
662 | } | ||
663 | |||
664 | /* | 642 | /* |
665 | * Submits register request to kgameportd for subsequent execution. | 643 | * Submits register request to kgameportd for subsequent execution. |
666 | * Note that port registration is always asynchronous. | 644 | * Note that port registration is always asynchronous. |