]> git.baikalelectronics.ru Git - kernel.git/commit
Input: synaptics-rmi4 - fix error return code in rmi_driver_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 28 Apr 2020 23:09:53 +0000 (16:09 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 28 Apr 2020 23:11:40 +0000 (16:11 -0700)
commit8c6572bb433a215b824c02c0f6e166fcab51d770
tree1981a0bc1662ec7cb519571b777ba20809ad6a01
parent39000f82e61ae0e8b6c1aaaf842b47fd9c9eb46d
Input: synaptics-rmi4 - fix error return code in rmi_driver_probe()

Fix to return a negative error code from the input_register_device()
error handling case instead of 0, as done elsewhere in this function.

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Link: https://lore.kernel.org/r/20200428134948.78343-1-weiyongjun1@huawei.com
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/rmi4/rmi_driver.c