Searched hist:"0 bfed74e80cc9e30a84486053b942c5bf438210c" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/clk/imx/ |
H A D | clk-imx8-acm.c | diff 0bfed74e80cc9e30a84486053b942c5bf438210c Sat Oct 26 06:24:52 CDT 2024 Yang Yingliang <yangyingliang@huawei.com> clk: imx: imx8-acm: Fix return value check in clk_imx_acm_attach_pm_domains()
[ Upstream commit 81a206d736c19139d3863b79e7174f9e98b45499 ]
If device_link_add() fails, it returns NULL pointer not ERR_PTR(), replace IS_ERR() with NULL pointer check, and return -EINVAL.
Fixes: d3a0946d7ac9 ("clk: imx: imx8: add audio clock mux driver") Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Reviewed-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Abel Vesa <abel.vesa@linaro.org> Link: https://lore.kernel.org/r/20241026112452.1523-1-yangyingliang@huaweicloud.com Signed-off-by: Abel Vesa <abel.vesa@linaro.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
|