From: Wei Yongjun Date: Sat, 24 Aug 2013 23:39:26 +0000 (-0700) Subject: Input: as5011 - fix error return code in as5011_probe() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=67b3bfd0c22274f1b3c40f0820cbdc1d71f7d0cd;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git Input: as5011 - fix error return code in as5011_probe() Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/joystick/as5011.c b/drivers/input/joystick/as5011.c index 13eba2a8c4e0..005d852a06e9 100644 --- a/drivers/input/joystick/as5011.c +++ b/drivers/input/joystick/as5011.c @@ -288,6 +288,7 @@ static int as5011_probe(struct i2c_client *client, if (irq < 0) { dev_err(&client->dev, "Failed to get irq number for button gpio\n"); + error = irq; goto err_free_button_gpio; }