Skip to content
Snippets Groups Projects
Commit d82cbc59 authored by Jonas Karlman's avatar Jonas Karlman Committed by Tom Rini
Browse files

adc: Use regulator_set_enable_if_allowed


With the commit 4fcba5d5 ("regulator: implement basic reference
counter") the return value of regulator_set_enable may be EALREADY or
EBUSY for fixed/gpio regulators.

Change to use the more relaxed regulator_set_enable_if_allowed to
continue if regulator already was enabled or disabled.

Signed-off-by: default avatarJonas Karlman <jonas@kwiboo.se>
Reviewed-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>  # rockpro64-rk3399
parent 321d7b4d
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment