projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef0aca7
)
Input: as5011 - fix error return code in as5011_probe()
author
Wei Yongjun
<
[email protected]
>
Sat, 24 Aug 2013 23:39:26 +0000
(16:39 -0700)
committer
Dmitry Torokhov
<
[email protected]
>
Sun, 25 Aug 2013 00:44:25 +0000
(17:44 -0700)
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 <
[email protected]
>
Signed-off-by: Dmitry Torokhov <
[email protected]
>
drivers/input/joystick/as5011.c
patch
|
blob
|
history
diff --git
a/drivers/input/joystick/as5011.c
b/drivers/input/joystick/as5011.c
index 13eba2a8c4e053f98e6e6816e98ad01ed1aa4837..005d852a06e99d6ebf2299cd6a23eb9023712ef8 100644
(file)
--- 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;
}