diff options
| author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2022-02-24 12:58:40 +0000 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2022-06-27 08:01:49 +0100 |
| commit | 8ba4862eb59bb2717d8390649cf973a512d892aa (patch) | |
| tree | f48fa7378ab57b636826fe10b38c72b05ab78b48 /scripts/basic | |
| parent | f738cb62a8a7e1bea55e7f7047e2a352f1106f55 (diff) | |
| download | linux-8ba4862eb59bb2717d8390649cf973a512d892aa.tar.gz linux-8ba4862eb59bb2717d8390649cf973a512d892aa.zip | |
media: rkisp1: params: Fix and simplify (un)registration
The rkisp1_params_register() and rkisp1_params_unregister() functions
don't destroy the mutex (in the error path for the former). Fix this,
simplify error handling at registration time as media_entity_cleanup()
can be called on an uninitialized entity, and make
rkisp1_params_unregister() safe to be called on an unregistered params
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>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions
