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