drm: sti: hdmi: fix return value check in sti_hdmi_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 26 Aug 2014 10:23:07 +0000 (12:23 +0200)
committerBenjamin Gaignard <benjamin.gaignard@linaro.org>
Tue, 26 Aug 2014 12:16:39 +0000 (14:16 +0200)
commit88cfc3fb77d2a280f935dc482bdd781b96ff5570
tree8704cc0a757cc98a6fdb746736adddbc7047101d
parent31f32a21aa7e31179406f82b5fb3195b83d7acc8
drm: sti: hdmi: fix return value check in sti_hdmi_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>
drivers/gpu/drm/sti/sti_hdmi.c