[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210817081401.3440-1-utkarshverma294@gmail.com>
Date: Tue, 17 Aug 2021 13:44:01 +0530
From: Utkarsh Verma <utkarshverma294@...il.com>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: Jiri Slaby <jirislaby@...nel.org>, linux-serial@...r.kernel.org,
linux-kernel@...r.kernel.org,
linux-kernel-mentees@...ts.linuxfoundation.org,
Utkarsh Verma <utkarshverma294@...il.com>
Subject: [PATCH] serial: 8250_mid: Use pci_irq_vector() to get IRQ
Instead of a direct assignment, use pci_irq_vector() to get the
Linux IRQ number.
Signed-off-by: Utkarsh Verma <utkarshverma294@...il.com>
---
drivers/tty/serial/8250/8250_mid.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/tty/serial/8250/8250_mid.c b/drivers/tty/serial/8250/8250_mid.c
index efa0515139f8..3a279ce0e904 100644
--- a/drivers/tty/serial/8250/8250_mid.c
+++ b/drivers/tty/serial/8250/8250_mid.c
@@ -299,7 +299,7 @@ static int mid8250_probe(struct pci_dev *pdev, const struct pci_device_id *id)
memset(&uart, 0, sizeof(struct uart_8250_port));
uart.port.dev = &pdev->dev;
- uart.port.irq = pdev->irq;
+ uart.port.irq = pci_irq_vector(pdev, 0);
uart.port.private_data = mid;
uart.port.type = PORT_16750;
uart.port.iotype = UPIO_MEM;
--
2.17.1
Powered by blists - more mailing lists