Skip to content
Commit 53bf9590 authored by Wei Yongjun's avatar Wei Yongjun Committed by Kishon Vijay Abraham I
Browse files

phy: qcom-qmp: fix return value check in qcom_qmp_phy_create()

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

Fixes: e78f3d15

 ("phy: qcom-qmp: new qmp phy driver for qcom-chipsets")
Reviewed-by: default avatarVivek Gautam <vivek.gautam@codeaurora.org>
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarKishon Vijay Abraham I <kishon@ti.com>
parent 2ea659a9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment