diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-08-24 19:39:26 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2013-08-24 20:44:25 -0400 |
commit | 67b3bfd0c22274f1b3c40f0820cbdc1d71f7d0cd (patch) | |
tree | 651adfb7d58ac30e4d1fece3f7d256b69c338b24 /drivers/input | |
parent | ef0aca7f2f94a24d82aea0b74ae7a71c611e4895 (diff) |
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 <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/joystick/as5011.c | 1 |
1 files changed, 1 insertions, 0 deletions
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, | |||
288 | if (irq < 0) { | 288 | if (irq < 0) { |
289 | dev_err(&client->dev, | 289 | dev_err(&client->dev, |
290 | "Failed to get irq number for button gpio\n"); | 290 | "Failed to get irq number for button gpio\n"); |
291 | error = irq; | ||
291 | goto err_free_button_gpio; | 292 | goto err_free_button_gpio; |
292 | } | 293 | } |
293 | 294 | ||