summaryrefslogtreecommitdiff
path: root/drivers/regulator/bd71815-regulator.c
diff options
context:
space:
mode:
authorChen-Yu Tsai <wenst@chromium.org>2024-08-22 15:20:45 +0800
committerMark Brown <broonie@kernel.org>2024-08-22 13:34:29 +0100
commit395a41a1d3e377462f3eea8a205ee72be8885ff6 (patch)
treea93e697f3b2171233d19d65af2f2efccfafe9c70 /drivers/regulator/bd71815-regulator.c
parentad9d7a82901d9cea756b8666035b30ca41728e15 (diff)
regulator: Return actual error in of_regulator_bulk_get_all()
If regulator_get() in of_regulator_bulk_get_all() returns an error, that error gets overridden and -EINVAL is always passed out. This masks probe deferral requests and likely won't work properly in all cases. Fix this by letting of_regulator_bulk_get_all() return the original error code. Fixes: 27b9ecc7a9ba ("regulator: Add of_regulator_bulk_get_all") Signed-off-by: Chen-Yu Tsai <wenst@chromium.org> Link: https://patch.msgid.link/20240822072047.3097740-3-wenst@chromium.org Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/bd71815-regulator.c')
0 files changed, 0 insertions, 0 deletions