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 <[email protected]> # Tolino Shine2HD Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 43a48ec commit c4a8349

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)