serial: 8250_lpss: get IRQ via pci_irq_vector()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 21 Oct 2016 16:19:15 +0000 (19:19 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Oct 2016 14:27:24 +0000 (16:27 +0200)
Instead of a direct assignment use pci_irq_vector() call as it's done for the
other case.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_lpss.c

index ac2a34ecfd66eb84914ac6dbf1b79de87df739bf..fe7a36fbeef97ef7d97404264dd07f44501f0ebf 100644 (file)
@@ -174,7 +174,7 @@ static void qrk_serial_setup_dma(struct lpss8250 *lpss, struct uart_port *port)
        int ret;
 
        chip->dev = &pdev->dev;
-       chip->irq = pdev->irq;
+       chip->irq = pci_irq_vector(pdev, 0);
        chip->regs = pci_ioremap_bar(pdev, 1);
        chip->pdata = &qrk_serial_dma_pdata;