soc: aspeed: lpc-ctrl: Block error printing on probe defer cases
Joel Stanley
maintainerPATCH 1/1 soc: aspeed: lpc-ctrl: Block error printing on probe defer cases
From: Jae Hyun Yoo <[email protected]>
Add a checking code when it gets -EPROBE_DEFER while getting a clock resource. In this case, it doesn't need to print out an error message because the probing will be re-visited.
---
Please apply this through the soc tree as a fix.
drivers/soc/aspeed/aspeed-lpc-ctrl.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
drivers/soc/aspeed/aspeed-lpc-ctrl.c +3 -4
@@ -306,10 +306,9 @@ static int aspeed_lpc_ctrl_probe(struct platform_device *pdev) } lpc_ctrl->clk =devm_clk_get (dev,NULL ); -if (IS_ERR (lpc_ctrl->clk)) { -dev_err (dev,"couldn't get clock\n" ); -return PTR_ERR (lpc_ctrl->clk); - } +if (IS_ERR (lpc_ctrl->clk)) +return dev_err_probe (dev,PTR_ERR (lpc_ctrl->clk), +"couldn't get clock\n" ); rc =clk_prepare_enable (lpc_ctrl->clk);if (rc) {dev_err (dev,"couldn't enable clock\n" );
Signature · 1 line
2.34.1
This patch was applied to soc/soc.git (arm/fixes) by Arnd Bergmann <[email protected]>:
Hello:
This patch was applied to soc/soc.git (arm/fixes)
by Arnd Bergmann <[email protected]>:
Quoted 6 lines · On Tue, 1 Feb 2022 17:31:18 +1030 you wrote:
From: Jae Hyun Yoo <[email protected]>
Add a checking code when it gets -EPROBE_DEFER while getting a clock resource. In this case, it doesn't need to print out an error message because the probing will be re-visited.
Quoted 7 lines
Signed-off-by Jae Hyun Yoo <[email protected]>Reviewed-by Andrew Jeffery <[email protected]>Reviewed-by Iwona Winiarska <[email protected]>Signed-off-by Joel Stanley <[email protected]>[...]
Here is the summary with links:
- soc: aspeed: lpc-ctrl: Block error printing on probe defer cases
https://git.kernel.org/soc/soc/c/301a5d3ad243
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html