diff options
| author | Myeonghun Pak <mhun512@gmail.com> | 2026-04-26 15:43:49 +0300 |
|---|---|---|
| committer | Hans Verkuil <hverkuil+cisco@kernel.org> | 2026-05-05 17:57:03 +0300 |
| commit | 084973ebd67b28f0945c5d45408f86c58b540110 (patch) | |
| tree | 5906044350cd1c2acd71a7efaa8d1e6417edc293 /include/linux | |
| parent | 2fc030f9ff287efc4510f4ae5efee0f23e64b608 (diff) | |
| download | linux-084973ebd67b28f0945c5d45408f86c58b540110.tar.xz | |
media: stm32: dcmi: unregister notifier on probe failure
dcmi_graph_init() registers the async notifier before dcmi_probe() toggles
the reset line. If reset_control_assert() or reset_control_deassert()
fails afterwards, probe returns through err_cleanup and the driver core
will not call dcmi_remove().
Unregister the notifier before cleaning it up on that error path,
matching the successful remove path and the V4L2 async notifier lifetime
rules.
Signed-off-by: Myeonghun Pak <mhun512@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Fixes: d079f94c9046 ("media: platform: Switch to v4l2_async_notifier_add_subdev")
Cc: stable@vger.kernel.org
[hverkuil: added Fixes tag]
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
