regulator: rk808: Use dev_err_probe
authorSebastian Reichel <sebastian.reichel@collabora.com>
Thu, 20 Oct 2022 20:42:49 +0000 (22:42 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 28 Nov 2022 13:04:41 +0000 (13:04 +0000)
commitf39f8709c217d82aabbf51d8669731137ce09aea
tree9c49a6431436fc399716eb2c73c5753cf1f1bb43
parent647e57351f8ebc37d8e12cbc0f4bf7471754a0cc
regulator: rk808: Use dev_err_probe

Print error message for potential EPROBE_DEFER error using
dev_err_probe, which captures the reason in
/sys/kernel/debug/devices_deferred and otherwise silences
the message.

Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Link: https://lore.kernel.org/r/20221020204251.108565-12-sebastian.reichel@collabora.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/rk808-regulator.c