]> git.baikalelectronics.ru Git - kernel.git/commit
usb: phy: msm: Fix return value check in msm_otg_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Sun, 20 Jul 2014 03:40:37 +0000 (11:40 +0800)
committerFelipe Balbi <balbi@ti.com>
Tue, 19 Aug 2014 14:27:24 +0000 (09:27 -0500)
commit8a287b1e4ca8e4bc8fb9929e745aa23f0dae86c3
treea42e0bafdc25e0732c3a847b9f97cb0287ecb3b7
parentdf293aff9f664bba9fc8f1144bf1ed73b1e62d45
usb: phy: msm: Fix return value check in msm_otg_probe()

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

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/phy/phy-msm-usb.c