Input: as5011 - fix error return code in as5011_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Sat, 24 Aug 2013 23:39:26 +0000 (16:39 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 25 Aug 2013 00:44:25 +0000 (17:44 -0700)
commit67b3bfd0c22274f1b3c40f0820cbdc1d71f7d0cd
tree651adfb7d58ac30e4d1fece3f7d256b69c338b24
parentef0aca7f2f94a24d82aea0b74ae7a71c611e4895
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>
drivers/input/joystick/as5011.c