[media] v4l: ti-vpe: fix devm_ioremap_resource() return value checking
authorBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Tue, 18 Mar 2014 10:41:42 +0000 (07:41 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Fri, 23 May 2014 15:14:49 +0000 (12:14 -0300)
commit691903f932c5feafc149e2877478ef26b198eddb
tree7287b0e589e92f1a5846d0ab4758332a6d72f872
parent25c61e4cfc2fc69d62cc07befc075a2883b047a1
[media] v4l: ti-vpe: fix devm_ioremap_resource() return value checking

devm_ioremap_resource() returns a pointer to the remapped memory or
an ERR_PTR() encoded error code on failure.  Fix the checks inside
csc_create() and sc_create() accordingly.

Cc: Archit Taneja <archit@ti.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Tested-by: Archit Taneja<archit@ti.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/ti-vpe/csc.c
drivers/media/platform/ti-vpe/sc.c