linux/drivers/media/platform/sti/hva
Dan Carpenter 6b2bed8912 [media] st-hva: fix some error handling in hva_hw_probe()
The devm_ioremap_resource() returns error pointers, never NULL.  The
platform_get_resource() returns NULL on error, never error pointers.
The error code needs to be set, as well.  The current code returns
PTR_ERR(NULL) which is success.

Fixes: 57b2c0628b ("[media] st-hva: multi-format video encoder V4L2 driver")

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Jean-Christophe Trotin <jean-christophe.trotin@st.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-11-16 13:05:36 -02:00
..
hva-h264.c
hva-hw.c [media] st-hva: fix some error handling in hva_hw_probe() 2016-11-16 13:05:36 -02:00
hva-hw.h
hva-mem.c
hva-mem.h
hva-v4l2.c [media] hva: fix sparse warnings 2016-09-19 16:28:48 -03:00
hva.h
Makefile