]> git.baikalelectronics.ru Git - kernel.git/commit
clk: qcom: msm8916: Fix return value check in qcom_apcs_msm8916_clk_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 4 Jan 2018 06:34:43 +0000 (06:34 +0000)
committerStephen Boyd <sboyd@kernel.org>
Mon, 12 Mar 2018 22:14:24 +0000 (15:14 -0700)
commitfbb5302f45697c391d0a7b524c8f2abdb0d9ed36
tree51b0d70ded7d45bd6c401d74dc60b697fde98166
parent3c158d8f8fd3f6a1fba14b1ee6eaef87d85ba527
clk: qcom: msm8916: Fix return value check in qcom_apcs_msm8916_clk_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: 9a8699b2617c ("clk: qcom: Add APCS clock controller support")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/qcom/apcs-msm8916.c