Commit 81a206d7 authored by Yang Yingliang's avatar Yang Yingliang Committed by Abel Vesa
Browse files

clk: imx: imx8-acm: Fix return value check in clk_imx_acm_attach_pm_domains()



If device_link_add() fails, it returns NULL pointer not ERR_PTR(),
replace IS_ERR() with NULL pointer check, and return -EINVAL.

Fixes: d3a0946d ("clk: imx: imx8: add audio clock mux driver")
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Reviewed-by: default avatarPeng Fan <peng.fan@nxp.com>
Reviewed-by: default avatarAbel Vesa <abel.vesa@linaro.org>
Link: https://lore.kernel.org/r/20241026112452.1523-1-yangyingliang@huaweicloud.com


Signed-off-by: default avatarAbel Vesa <abel.vesa@linaro.org>
parent 92888f39
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment