linux_dsm_epyc7002/drivers/media/platform/sti
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
..
bdisp [media] bdisp: fix error return code in bdisp_probe() 2016-10-24 17:59:40 -02:00
c8sectpfe [media] c8sectpfe: don't break long lines 2016-10-21 09:35:11 -02:00
hva [media] st-hva: fix some error handling in hva_hw_probe() 2016-11-16 13:05:36 -02:00