mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 01:21:01 +07:00
serial: imx: Use dev_name() for request_irq() to distinguish UARTs
Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
da82f99724
commit
436e4ab5fc
@ -1116,25 +1116,25 @@ static int imx_startup(struct uart_port *port)
|
|||||||
*/
|
*/
|
||||||
if (sport->txirq > 0) {
|
if (sport->txirq > 0) {
|
||||||
retval = request_irq(sport->rxirq, imx_rxint, 0,
|
retval = request_irq(sport->rxirq, imx_rxint, 0,
|
||||||
DRIVER_NAME, sport);
|
dev_name(port->dev), sport);
|
||||||
if (retval)
|
if (retval)
|
||||||
goto error_out1;
|
goto error_out1;
|
||||||
|
|
||||||
retval = request_irq(sport->txirq, imx_txint, 0,
|
retval = request_irq(sport->txirq, imx_txint, 0,
|
||||||
DRIVER_NAME, sport);
|
dev_name(port->dev), sport);
|
||||||
if (retval)
|
if (retval)
|
||||||
goto error_out2;
|
goto error_out2;
|
||||||
|
|
||||||
/* do not use RTS IRQ on IrDA */
|
/* do not use RTS IRQ on IrDA */
|
||||||
if (!USE_IRDA(sport)) {
|
if (!USE_IRDA(sport)) {
|
||||||
retval = request_irq(sport->rtsirq, imx_rtsint, 0,
|
retval = request_irq(sport->rtsirq, imx_rtsint, 0,
|
||||||
DRIVER_NAME, sport);
|
dev_name(port->dev), sport);
|
||||||
if (retval)
|
if (retval)
|
||||||
goto error_out3;
|
goto error_out3;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
retval = request_irq(sport->port.irq, imx_int, 0,
|
retval = request_irq(sport->port.irq, imx_int, 0,
|
||||||
DRIVER_NAME, sport);
|
dev_name(port->dev), sport);
|
||||||
if (retval) {
|
if (retval) {
|
||||||
free_irq(sport->port.irq, sport);
|
free_irq(sport->port.irq, sport);
|
||||||
goto error_out1;
|
goto error_out1;
|
||||||
|
Loading…
Reference in New Issue
Block a user