[media] VPU: mediatek: fix return value check in mtk_vpu_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 12 Jul 2016 11:00:55 +0000 (08:00 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 13 Jul 2016 10:59:52 +0000 (07:59 -0300)
commitffe57033008ba7b09f1319ea0f7fb8d91624046a
tree6894c4f006be74960413382f6ec6355207560da1
parent980e0b36b55985dd0a37acd25d29c8f21482db32
[media] VPU: mediatek: fix return value check in mtk_vpu_probe()

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

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/mtk-vpu/mtk_vpu.c