Skip to content
Unverified Commit e458d3f3 authored by Anand Moon's avatar Anand Moon Committed by Mark Brown
Browse files

regulator: pwm-regulator: Make use of the helper function dev_err_probe()



devm_pwm_get() can return -EPROBE_DEFER if the pwm regulator is not
ready yet. Use dev_err_probe() for pwm regulator resources
to indicate the deferral reason when waiting for the
resource to come up.

Cc: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Acked-by: default avatarMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: default avatarAnand Moon <linux.amoon@gmail.com>
Link: https://lore.kernel.org/r/20210925173413.1019-1-linux.amoon@gmail.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 5fa6863b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment