Commit a5923cf4 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by openeuler-sync-bot
Browse files

regulator: Handle deferred clk

stable inclusion
from stable-v5.10.177
commit 1025c471517bba5a43ded0f37be6f6ea2dbb5f29
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I88YNP

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=1025c471517bba5a43ded0f37be6f6ea2dbb5f29



--------------------------------

[ Upstream commit 02bcba0b ]

devm_clk_get() can return -EPROBE_DEFER. So it is better to return the
error code from devm_clk_get(), instead of a hard coded -ENOENT.

This gives more opportunities to successfully probe the driver.

Fixes: 8959e532 ("regulator: fixed: add possibility to enable by clock")
Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/18459fae3d017a66313699c7c8456b28158b2dd0.1679819354.git.christophe.jaillet@wanadoo.fr


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
(cherry picked from commit 85733329)
parent e997845f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment