]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
tty: serial: fsl_lpuart: Make interrupt name distinct
authorStefan Wahren <wahrenst@gmx.net>
Wed, 5 Feb 2025 09:10:07 +0000 (10:10 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Feb 2025 09:05:17 +0000 (10:05 +0100)
SoCs like the i.MX93 have several lpuart interfaces, but fsl_lpuart
uses the driver name to request the IRQ. This makes it hard to
identify interfaces from outputs like /proc/interrupts .
So use the dev_name() for requesting instead.

Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Link: https://lore.kernel.org/r/20250205091007.4528-1-wahrenst@gmx.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/fsl_lpuart.c

index c91b9d9818cd832ea7bb6f1de9f0d4fbdfbfff42..91d02c55c4707ae44f392b68ced3b289cc502abf 100644 (file)
@@ -2954,7 +2954,7 @@ static int lpuart_probe(struct platform_device *pdev)
                goto failed_attach_port;
 
        ret = devm_request_irq(&pdev->dev, sport->port.irq, handler, 0,
-                               DRIVER_NAME, sport);
+                              dev_name(&pdev->dev), sport);
        if (ret)
                goto failed_irq_request;