media: ddbridge: request/free_irq using pci_irq_vector, enable MSI-X
authorDaniel Scheller <d.scheller@gmx.net>
Mon, 9 Apr 2018 16:47:39 +0000 (12:47 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 4 May 2018 14:32:52 +0000 (10:32 -0400)
commit6bf0f0512a85c0a28c2e879fc0f6f7f44008d588
tree44c67634421a49507becd267e9530b67ea64777c
parent95c2ab9e21df95ed5830f1de561301609df1c20a
media: ddbridge: request/free_irq using pci_irq_vector, enable MSI-X

Instead of trying to manage IRQ numbers on itself, utilise the
pci_irq_vector() function to do this, which will take care of correct IRQ
numbering for MSI and non-MSI IRQs. While at it, request and enable MSI-X
interrupts for hardware (boards and cards) that support this.

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