]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5a1262e5761f9581fbfe1a4030950abbe6119846
tree39e6d4e81633843007564602407dd239cac8c33b
parent841b93e6f795d64685b06d81f83a5694fa7b33c0
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