media: ti-vpe: cal: handle cal_ctx_v4l2_register error
authorTomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Mon, 14 Jun 2021 11:23:31 +0000 (13:23 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 12 Jul 2021 11:16:09 +0000 (13:16 +0200)
commita6c9aad96508d31732cba7f0855a7f21ddf65eae
tree1afae1b2e8e5491a3d39b7350f312c452905f714
parent7d167e68d8c790ed8afafd772c3fe77e8aeb55bd
media: ti-vpe: cal: handle cal_ctx_v4l2_register error

cal_async_notifier_complete() doesn't handle errors returned from
cal_ctx_v4l2_register(). Add the error handling.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/ti-vpe/cal.c