Input: melfas_mip4 - fix return value check in mip4_probe()
authorYang Yingliang <yangyingliang@huawei.com>
Sat, 24 Sep 2022 03:07:15 +0000 (11:07 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Oct 2022 11:16:50 +0000 (13:16 +0200)
commitc7a356e64ea6320a6935b04079c7b4eaf07dad59
tree06f43871d7906a6e42316e947693889430addb6f
parentdf0c2070a73f8164164ac01d46eeda488d0055c1
Input: melfas_mip4 - fix return value check in mip4_probe()

[ Upstream commit a54dc27bd25f20ee3ea2009584b3166d25178243 ]

devm_gpiod_get_optional() may return ERR_PTR(-EPROBE_DEFER),
add a minus sign to fix it.

Fixes: 6ccb1d8f78bd ("Input: add MELFAS MIP4 Touchscreen driver")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20220924030715.1653538-1-yangyingliang@huawei.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/input/touchscreen/melfas_mip4.c