]> git.baikalelectronics.ru Git - kernel.git/commit
media: rkisp1: stats: Simplify (un)registration
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Thu, 24 Feb 2022 12:58:40 +0000 (12:58 +0000)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 27 Jun 2022 07:02:13 +0000 (08:02 +0100)
commitfe1603667edd85361f0c66a13c6059dd49343578
treef4e85d770906d12a6e0e6e982534fd2a53fa54e1
parente36f8ec4adc592d0da51f7d56be56d8f5931091d
media: rkisp1: stats: Simplify (un)registration

Simplify error handling at registration time as media_entity_cleanup()
can be called on an uninitialized entity, and make
rkisp1_stats_unregister() safe to be called on an unregistered stats
node to prepare for simplification of error handling at probe time.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/rockchip/rkisp1/rkisp1-stats.c