[media] v4l: ti-vpe: fix return value check in vpe_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Wed, 30 Oct 2013 03:15:13 +0000 (00:15 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 10 Dec 2013 08:36:21 +0000 (06:36 -0200)
commitb68231a1b5e95a532f4d5135cdbd0fe6b0bfcb3b
tree4c2c0cb242a0a53eece03f5d50fa9d01367fb82d
parent6676cafe6bb69898cdb94937651249d0999e4b59
[media] v4l: ti-vpe: fix return value check in vpe_probe()

In case of error, the function devm_kzalloc() and devm_ioremap()
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>
Reviewed-by: Archit Taneja <archit@ti.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/ti-vpe/vpe.c