HID: fix hidinput_connect ignoring retval from input_register_device
authorDirk Hohndel <hohndel@linux.intel.com>
Tue, 30 Oct 2007 12:02:44 +0000 (13:02 +0100)
committerJiri Kosina <jkosina@suse.cz>
Wed, 31 Oct 2007 12:30:35 +0000 (13:30 +0100)
commit368d290ba2a66338303b5d3998b182e404a9eb38
tree8c26ffd8f36e1ef1f0533f20b0018919a029a83b
parentd624284b06f869dad87a70a8d0cad72fbf7527b9
HID: fix hidinput_connect ignoring retval from input_register_device

hidinput_connect() ignores retval from input_register_device(). Fix it
by properly undoing all the registrations that have been already done,
and return error.

Signed-off-by: Dirk Hohndel <hohndel@linux.intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-input.c