summaryrefslogtreecommitdiffstats
path: root/scripts/stackusage
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-02-24 12:58:40 +0000
committerMauro Carvalho Chehab <mchehab@kernel.org>2022-06-27 07:57:44 +0100
commit55fcb913d5d3d1f3d0ce91d8d42c50d9cd496427 (patch)
tree2234e57627aa3b219ff6593a164d8dfcce64d281 /scripts/stackusage
parent56c8534e2d2f9bf789cdfc50e62bc30c992da69f (diff)
downloadlinux-55fcb913d5d3d1f3d0ce91d8d42c50d9cd496427.tar.gz
linux-55fcb913d5d3d1f3d0ce91d8d42c50d9cd496427.zip
media: rkisp1: capture: Fix and simplify (un)registration
The rkisp1_register_capture() and rkisp1_unregister_capture() functions don't destroy the mutex (in the error path for the former). Fix this and make rkisp1_unregister_capture() and rkisp1_capture_devs_unregister() safe to be called on an unregistered capture node to prepare for simplification of error handling at probe time. While at it, drop the double initialization of cap->rkisp1 in rkisp1_capture_devs_register() as the field is already initialized in rkisp1_capture_init(). 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>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions