]> asedeno.scripts.mit.edu Git - linux.git/commit
media: ddbridge: move MSI IRQ cleanup to a helper function
authorDaniel Scheller <d.scheller@gmx.net>
Mon, 9 Apr 2018 16:47:38 +0000 (12:47 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 4 May 2018 14:31:46 +0000 (10:31 -0400)
commit95c2ab9e21df95ed5830f1de561301609df1c20a
treea5a806aab942988758d67230c617d8c6b3829005
parent05ed62da032afac412690c338fb9fa5063bfa4b8
media: ddbridge: move MSI IRQ cleanup to a helper function

Introduce the ddb_msi_exit() helper to be used for cleaning up previously
allocated MSI IRQ vectors. Deduplicates code and makes things look
cleaner as for all cleanup work the CONFIG_PCI_MSI ifdeffery is only
needed in the helper now. Also, replace the call to the deprecated
pci_disable_msi() function with pci_free_irq_vectors().

Picked up from the upstream dddvb-0.9.33 release.

Signed-off-by: Daniel Scheller <d.scheller@gmx.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/pci/ddbridge/ddbridge-main.c