Skip to content

Commit a54dc27

Browse files
Yang Yingliangdtor
authored andcommitted
Input: melfas_mip4 - fix return value check in mip4_probe()
devm_gpiod_get_optional() may return ERR_PTR(-EPROBE_DEFER), add a minus sign to fix it. Fixes: 6ccb1d8 ("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>
1 parent 9c9c711 commit a54dc27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/input/touchscreen/melfas_mip4.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1453,7 +1453,7 @@ static int mip4_probe(struct i2c_client *client, const struct i2c_device_id *id)
14531453
"ce", GPIOD_OUT_LOW);
14541454
if (IS_ERR(ts->gpio_ce)) {
14551455
error = PTR_ERR(ts->gpio_ce);
1456-
if (error != EPROBE_DEFER)
1456+
if (error != -EPROBE_DEFER)
14571457
dev_err(&client->dev,
14581458
"Failed to get gpio: %d\n", error);
14591459
return error;

0 commit comments

Comments
 (0)