media: atomisp: Call pcim_enable_device() and pcim_iomap_regions() later
authorHans de Goede <hdegoede@redhat.com>
Sun, 12 Nov 2023 20:29:28 +0000 (21:29 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Thu, 1 Feb 2024 06:02:43 +0000 (07:02 +0100)
commit62c319a51bcfdc81ce31036dcffa5c5381b0ea54
tree95039fb4cba313edfc8f49fa6d013f0d0f813c36
parentf18ae7203f6fdb0cfb408ab82807bcd700e33a96
media: atomisp: Call pcim_enable_device() and pcim_iomap_regions() later

ATM the atomisp firmware is not available in linux-firmware,
so most users will not have it installed.

Move pcim_enable_device() and pcim_iomap_regions() down in
atomisp_pci_probe() so that they are never called when the firmware
is not there.

This is a preparation patch for making the atomisp driver handle
missing firmware better.

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