]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: core: Fix missing error return from regulator_bulk_get()
authorDouglas Anderson <dianders@chromium.org>
Tue, 9 Aug 2022 21:27:45 +0000 (14:27 -0700)
committerMark Brown <broonie@kernel.org>
Wed, 10 Aug 2022 13:52:07 +0000 (14:52 +0100)
commited06294d6745b46120bbf69b67a97f35f81445a7
treedf07f513f37dd49bdee276c22075744fb07d79bd
parent8107ae6030eb6f87f9a4264e9d9a8fcdf8ef7d22
regulator: core: Fix missing error return from regulator_bulk_get()

In commit b93d75fd5c82 ("regulator: core: Allow specifying an initial
load w/ the bulk API") I changed the error handling but had a subtle
that caused us to always return no error even if there was an
error. Fix it.

Fixes: b93d75fd5c82 ("regulator: core: Allow specifying an initial load w/ the bulk API")
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Link: https://lore.kernel.org/r/20220809142738.1.I91625242f137c707bb345c51c80c5ecee02eeff3@changeid
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/core.c