Skip to content

Commit c4a8349

Browse files
committed
Input: zforce_ts - do not ignore errors when acquiring regulator
We should abort probe on any error besides -ENOENT which signifies that the regulator is not defined in device tree or elsewhere, not only when we see -EPROBE_DEFER. Tested-by: Andreas Kemnade <andreas@kemnade.info> # Tolino Shine2HD Link: https://lore.kernel.org/r/20240824055047.1706392-12-dmitry.torokhov@gmail.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 parent 43a48ec commit c4a8349

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/input/touchscreen/zforce_ts.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ static int zforce_probe(struct i2c_client *client)
753753
ts->reg_vdd = devm_regulator_get_optional(&client->dev, "vdd");
754754
if (IS_ERR(ts->reg_vdd)) {
755755
ret = PTR_ERR(ts->reg_vdd);
756-
if (ret == -EPROBE_DEFER)
756+
if (ret != -ENOENT)
757757
return ret;
758758
} else {
759759
ret = regulator_enable(ts->reg_vdd);

0 commit comments

Comments
 (0)