Commit 0913e953 authored by Yang Yingliang's avatar Yang Yingliang Committed by Jialin Zhang
Browse files

Input: melfas_mip4 - fix return value check in mip4_probe()

stable inclusion
from stable-v5.10.147
commit 57959392f7f00db2c2b82be8e3624810b7e0c59f
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I6D0W8

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=57959392f7f00db2c2b82be8e3624810b7e0c59f



--------------------------------

[ Upstream commit a54dc27b ]

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

Fixes: 6ccb1d8f ("Input: add MELFAS MIP4 Touchscreen driver")
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20220924030715.1653538-1-yangyingliang@huawei.com


Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarJialin Zhang <zhangjialin11@huawei.com>
Reviewed-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent 629a0e98
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment