media: atomisp: Replace deprecated MSI APIs
authorSuraj Upadhyay <usuraj35@gmail.com>
Sun, 19 Jul 2020 14:26:23 +0000 (16:26 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 3 Sep 2020 08:59:55 +0000 (10:59 +0200)
commit02900a49a43b7f634cb457b94658b6efbc91b877
tree8003cd036061096a84533db5cea58847aedd75ef
parented99640d558ac4011c2b4abc26138027203ccfe2
media: atomisp: Replace deprecated MSI APIs

Replace deprecated MSI IRQ enabler and disabler
with pci_alloc_irq_vectors and pci_free_irq_vectors respectively.
And as a result handle the returned error as appropriate.
Compile tested.

[mchehab: solved a merge conflict that renamed dev->pdev]

Signed-off-by: Suraj Upadhyay <usuraj35@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/pci/atomisp_v4l2.c