media: atomisp: Fix probe error-exit path
authorHans de Goede <hdegoede@redhat.com>
Wed, 27 Dec 2023 20:45:48 +0000 (21:45 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Thu, 1 Feb 2024 06:02:56 +0000 (07:02 +0100)
commit7f7b6b5da0d631bc141cf67b08d8c3826d579335
tree4b5bf3c177c6a3b48a2a42a3be1753a6973c3167
parent62c319a51bcfdc81ce31036dcffa5c5381b0ea54
media: atomisp: Fix probe error-exit path

Fix probe error-exit path:
-Add a missing ia_css_unload_firmware() call when v4l2_async_nf_register()
 fails
-Add a missing pm_runtime_forbid() call to undo the pm_runtime_allow() call
-Remove the unnecessary pcim_iounmap_regions() those are devm managed
 so they will get cleaned up automatically on an error exit from probe()
-Rename the labels to avoid having multiple labels pointing to the same
 place in the error-exit path

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/atomisp/pci/atomisp_v4l2.c