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>
This commit is contained in:
Dmitry Torokhov
2006-02-19 00:22:51 -05:00
parent 221979aad6
commit 51c38f9bce
3 changed files with 3 additions and 5 deletions

View File

@@ -797,5 +797,5 @@ static void __exit gameport_exit(void)
kthread_stop(gameport_task);
}
module_init(gameport_init);
subsys_initcall(gameport_init);
module_exit(gameport_exit);

View File

@@ -924,5 +924,5 @@ static void __exit serio_exit(void)
kthread_stop(serio_task);
}
module_init(serio_init);
subsys_initcall(serio_init);
module_exit(serio_exit);