Skip to content
Commit 1004c346 authored by Yang Yingliang's avatar Yang Yingliang Committed by Stephen Boyd
Browse files

clk: sp7021: fix return value check in sp7021_clk_probe()



devm_platform_ioremap_resource() never returns NULL pointer,
it will return ERR_PTR() when it fails, so replace the check
with IS_ERR().

Fixes: d54c1fd4 ("clk: Add Sunplus SP7021 clock driver")
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20231128133016.2494699-1-yangyingliang@huawei.com


Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent b85ea95d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment