[PATCH] Input: fix error handling in input_register_device()