drm: sti: hda: fix return value check in sti_hda_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 26 Aug 2014 10:23:52 +0000 (12:23 +0200)
committerBenjamin Gaignard <benjamin.gaignard@linaro.org>
Tue, 26 Aug 2014 12:16:46 +0000 (14:16 +0200)
commit5024a2b7ae9a92b8ec97ac1507efb283778480ce
treef48b395cbe30973e5790575f567681692bd2a02b
parent88cfc3fb77d2a280f935dc482bdd781b96ff5570
drm: sti: hda: fix return value check in sti_hda_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_hda.c