misc: pci_endpoint_test: Use pci_irq_vector function
authorGustavo Pimentel <gustavo.pimentel@synopsys.com>
Mon, 14 May 2018 17:27:48 +0000 (18:27 +0100)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Tue, 15 May 2018 15:19:35 +0000 (16:19 +0100)
commitecc57efe9d0d958c8a3a43a4430bf19319e74728
tree20684b6b853b94fdb90628af0bd287e312ee654e
parent798c0441bec8c4629da9343ca1d057db99e2b895
misc: pci_endpoint_test: Use pci_irq_vector function

Replace "pdev->irq + index" operation by the pci_irq_vector() call,
that converts from device vector to Linux IRQ.

Suggested-by: Alan Douglas <adouglas@cadence.com>
Signed-off-by: Gustavo Pimentel <gustavo.pimentel@synopsys.com>
[lorenzo.pieralisi@arm.com: updated commit log]
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
drivers/misc/pci_endpoint_test.c