Skip to content
Commit dbb988b4 authored by Wei Yongjun's avatar Wei Yongjun Committed by Stephen Boyd
Browse files

clk: qcom: Fix return value check in apss_ipq6018_probe()



In case of error, the function dev_get_regmap() returns NULL pointer
not ERR_PTR(). The IS_ERR() test in the return value check should be
replaced with NULL test.

Fixes: 5e77b4ef ("clk: qcom: Add ipq6018 apss clock controller")
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Link: https://lore.kernel.org/r/20200628023055.50608-1-weiyongjun1@huawei.com


Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent 59390282
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