diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2023-11-28 21:30:16 +0800 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2023-12-16 17:10:17 -0800 |
commit | 1004c346a2b7393fce37dd1f320555e0a0d71e3f (patch) | |
tree | f9ee8f4ae22b6d7afb8eb1cbc0c3da146d034d67 /scripts/gdb/linux/radixtree.py | |
parent | b85ea95d086471afb4ad062012a4d73cd328fa86 (diff) |
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 'scripts/gdb/linux/radixtree.py')
0 files changed, 0 insertions, 0 deletions