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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Jun 2020 06:16:39 +0000 (08:16 +0200)
commita70ac9df36ca00b7c8049ac0626e3859bd65a897
tree4320fb625fc3727ad06b2ee54bc3ea9c8af1e71e
parentdbe1a156cb2a284d0ea91028742e63f60fb019ae
Input: synaptics-rmi4 - fix error return code in rmi_driver_probe()

[ Upstream commit 5caab2da63207d6d631007f592f5219459e3454d ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/input/rmi4/rmi_driver.c