drm/sti: correctly test devm_ioremap() return
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 8 Jun 2015 13:25:52 +0000 (15:25 +0200)
committerBenjamin Gaignard <benjamin.gaignard@linaro.org>
Mon, 8 Jun 2015 13:28:10 +0000 (15:28 +0200)
commitd3c8a0b2becf1015f502bf4b0f50fe18e0ed8a93
tree39e6d4e81633843007564602407dd239cac8c33b
parentae45577324d1f749c907840247d443696ac3bc7a
drm/sti: correctly test devm_ioremap() return

In case of error, the function devm_ioremap_nocache() returns NULL
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_dvo.c