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)
commit55c19eee3b471e7ca7e38783836f7b7137c9d14f
tree51b0d70ded7d45bd6c401d74dc60b697fde98166
parent9903e41ae1f5d50c93f268ca3304d4d7c64b9311
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: 81ac38847a1d ("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