soc: aspeed: lpc-ctrl: Block error printing on probe defer cases
[ Upstream commit 301a5d3ad2432d7829f59432ca0a93a6defbb9a1 ] 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. Signed-off-by: Jae Hyun Yoo <jae.hyun.yoo@linux.intel.com> Signed-off-by: Joel Stanley <joel@jms.id.au> Reviewed-by: Andrew Jeffery <andrew@aj.id.au> Reviewed-by: Iwona Winiarska <iwona.winiarska@intel.com> Link: https://lore.kernel.org/r/20211104173709.222912-1-jae.hyun.yoo@intel.com Link: https://lore.kernel.org/r/20220201070118.196372-1-joel@jms.id.au' Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
fecb05b1ce
commit
a21f472fb5
@@ -251,10 +251,9 @@ static int aspeed_lpc_ctrl_probe(struct platform_device *pdev)
|
|||||||
}
|
}
|
||||||
|
|
||||||
lpc_ctrl->clk = devm_clk_get(dev, NULL);
|
lpc_ctrl->clk = devm_clk_get(dev, NULL);
|
||||||
if (IS_ERR(lpc_ctrl->clk)) {
|
if (IS_ERR(lpc_ctrl->clk))
|
||||||
dev_err(dev, "couldn't get clock\n");
|
return dev_err_probe(dev, PTR_ERR(lpc_ctrl->clk),
|
||||||
return PTR_ERR(lpc_ctrl->clk);
|
"couldn't get clock\n");
|
||||||
}
|
|
||||||
rc = clk_prepare_enable(lpc_ctrl->clk);
|
rc = clk_prepare_enable(lpc_ctrl->clk);
|
||||||
if (rc) {
|
if (rc) {
|
||||||
dev_err(dev, "couldn't enable clock\n");
|
dev_err(dev, "couldn't enable clock\n");
|
||||||
|
Reference in New Issue
Block a user