Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 -1
+1 -1
drivers/input/touchscreen/zforce_ts.c
··· 753 753 ts->reg_vdd = devm_regulator_get_optional(&client->dev, "vdd"); 754 754 if (IS_ERR(ts->reg_vdd)) { 755 755 ret = PTR_ERR(ts->reg_vdd); 756 - if (ret == -EPROBE_DEFER) 756 + if (ret != -ENOENT) 757 757 return ret; 758 758 } else { 759 759 ret = regulator_enable(ts->reg_vdd);