mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-13 04:39:36 +02:00
clk: qcom: kpss-xcc: Return of_clk_add_hw_provider to transfer the error
[ Upstream commit9db4585eca
] Return of_clk_add_hw_provider() in order to transfer the error if it fails. Fixes:09be1a39e6
("clk: qcom: kpss-xcc: register it as clk provider") Signed-off-by: Chen Ni <nichen@iscas.ac.cn> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Link: https://lore.kernel.org/r/20240704073606.1976936-1-nichen@iscas.ac.cn Signed-off-by: Bjorn Andersson <andersson@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
adbaa8f99c
commit
7e8e9d3d4e
|
@ -63,9 +63,7 @@ static int kpss_xcc_driver_probe(struct platform_device *pdev)
|
||||||
if (IS_ERR(hw))
|
if (IS_ERR(hw))
|
||||||
return PTR_ERR(hw);
|
return PTR_ERR(hw);
|
||||||
|
|
||||||
of_clk_add_hw_provider(dev->of_node, of_clk_hw_simple_get, hw);
|
return of_clk_add_hw_provider(dev->of_node, of_clk_hw_simple_get, hw);
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct platform_driver kpss_xcc_driver = {
|
static struct platform_driver kpss_xcc_driver = {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user