]> git.baikalelectronics.ru Git - kernel.git/commit
media: atomisp: add missing media_device_cleanup() in atomisp_unregister_entities()
authorTsuchiya Yuto <kitakar@gmail.com>
Sun, 17 Oct 2021 16:19:41 +0000 (01:19 +0900)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 15 Nov 2021 08:11:35 +0000 (08:11 +0000)
commit3cc52fc28cace9690407dedde291115a8989e748
tree35852cf8f7a862f5bfea1deed9b65657d9323c9a
parentf69f2fbd2e15ba9d0d47a133de304136b3f43721
media: atomisp: add missing media_device_cleanup() in atomisp_unregister_entities()

After the commit 3fc07f9d01a9 ("[media] media-device: split media
initialization and registration"), calling media_device_cleanup()
is needed it seems. However, currently it is missing for the module
unload path.

Note that for the probe failure path, it is already added in
atomisp_register_entities().

This patch adds the missing call of media_device_cleanup() in
atomisp_unregister_entities().

Fixes: f40413881fa2 ("staging/atomisp: Add support for the Intel IPU v2")
Signed-off-by: Tsuchiya Yuto <kitakar@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/pci/atomisp_v4l2.c