diff options
author | Dmitry Torokhov <dtor_core@ameritech.net> | 2006-02-19 00:22:51 -0500 |
---|---|---|
committer | Dmitry Torokhov <dtor_core@ameritech.net> | 2006-02-19 00:22:51 -0500 |
commit | 51c38f9bce274a1e8a90aa457fb433be738f7458 (patch) | |
tree | 1a04a18c40f7705c8b001f5483b95bdd38727c6f /drivers/input | |
parent | 221979aad6ab4792617f2e58973aa6fc349d4036 (diff) |
Input: initialize serio and gameport at subsystem level
Serio and gameport cores do not depend on other drivers and are
used by code living outside of drivers/input/{gameport|serio}.
Registering them at subsystem level guarantees that they are
fully initialized before anyone tries to use them.
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/gameport/gameport.c | 2 | ||||
-rw-r--r-- | drivers/input/serio/serio.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/input/gameport/gameport.c b/drivers/input/gameport/gameport.c index 9444702630c4..bcfd700829a1 100644 --- a/drivers/input/gameport/gameport.c +++ b/drivers/input/gameport/gameport.c | |||
@@ -797,5 +797,5 @@ static void __exit gameport_exit(void) | |||
797 | kthread_stop(gameport_task); | 797 | kthread_stop(gameport_task); |
798 | } | 798 | } |
799 | 799 | ||
800 | module_init(gameport_init); | 800 | subsys_initcall(gameport_init); |
801 | module_exit(gameport_exit); | 801 | module_exit(gameport_exit); |
diff --git a/drivers/input/serio/serio.c b/drivers/input/serio/serio.c index 79e5e77ce03e..966600779b70 100644 --- a/drivers/input/serio/serio.c +++ b/drivers/input/serio/serio.c | |||
@@ -924,5 +924,5 @@ static void __exit serio_exit(void) | |||
924 | kthread_stop(serio_task); | 924 | kthread_stop(serio_task); |
925 | } | 925 | } |
926 | 926 | ||
927 | module_init(serio_init); | 927 | subsys_initcall(serio_init); |
928 | module_exit(serio_exit); | 928 | module_exit(serio_exit); |