diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2023-11-28 16:30:16 +0300 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2023-12-17 04:10:17 +0300 |
commit | 1004c346a2b7393fce37dd1f320555e0a0d71e3f (patch) | |
tree | f9ee8f4ae22b6d7afb8eb1cbc0c3da146d034d67 /drivers/clk/hisilicon | |
parent | b85ea95d086471afb4ad062012a4d73cd328fa86 (diff) | |
download | linux-1004c346a2b7393fce37dd1f320555e0a0d71e3f.tar.xz |
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: d54c1fd4a51e ("clk: Add Sunplus SP7021 clock driver")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20231128133016.2494699-1-yangyingliang@huawei.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/hisilicon')
0 files changed, 0 insertions, 0 deletions