Input: gameport - make gameport_register_driver() return errors
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 6 Jun 2008 05:33:22 +0000 (01:33 -0400)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 30 Jul 2008 04:41:15 +0000 (00:41 -0400)
commit6902c0bead4ce266226fc0c5b3828b850bdc884a
treec3e8e280e56089dc4e9f4410128e17c8de0f8bee
parent6e86841d05f371b5b9b86ce76c02aaee83352298
Input: gameport - make gameport_register_driver() return errors

Perform actual driver registration right in gameport_register_driver()
instead of offloading it to kgameportd and return proper error code to
callers if driver registration fails.

Note that driver <-> port matching is still done by kgameportd.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/gameport/gameport.c
include/linux/gameport.h