media: tvp5150: Add missed media_entity_cleanup()
authorChuhong Yuan <hslester96@gmail.com>
Sat, 6 Jun 2020 14:39:18 +0000 (16:39 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sat, 4 Jul 2020 10:43:36 +0000 (12:43 +0200)
commitd000e9b5e4a23dd700b3f58a4738c94bb5179ff0
treef7f99ae62d7e325736f5e86c25a412e073922861
parent477d4d38b93d457d6391a864dcfcc114a8b44060
media: tvp5150: Add missed media_entity_cleanup()

This driver does not call media_entity_cleanup() in the error handler
of tvp5150_registered() and tvp5150_remove(), while it has called
media_entity_pads_init() at first.
Add the missed calls to fix it.

Fixes: 0556f1d580d4 ("media: tvp5150: add input source selection of_graph support")
Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Reviewed-by: Marco Felsch <m.felsch@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/i2c/tvp5150.c