regulator: pwm-regulator: Make use of the helper function dev_err_probe()
authorAnand Moon <linux.amoon@gmail.com>
Sat, 25 Sep 2021 17:34:12 +0000 (17:34 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 27 Sep 2021 12:01:19 +0000 (13:01 +0100)
commite458d3f39d917770cef2ed78891349362ecd3e15
treefaff24b19ada539e1e047dc3ddd9f883d9e9642b
parent5fa6863ba69265cb7e45567d12614790ff26bd56
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: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Anand Moon <linux.amoon@gmail.com>
Link: https://lore.kernel.org/r/20210925173413.1019-1-linux.amoon@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/pwm-regulator.c