]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: dsa: b53: per-port interrupts are optional
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 17 Apr 2020 18:33:41 +0000 (11:33 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 18 Apr 2020 22:49:39 +0000 (15:49 -0700)
Make use of platform_get_irq_byname_optional() to avoid printing
messages on the kernel console that interrupts cannot be found.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/b53/b53_srab.c

index 0a1be5259be0c911d6e9fc5f18c3447c2e58bc46..1207c3095027e10264625c6e93318690993977ca 100644 (file)
@@ -524,7 +524,7 @@ static void b53_srab_prepare_irq(struct platform_device *pdev)
 
                port->num = i;
                port->dev = dev;
-               port->irq = platform_get_irq_byname(pdev, name);
+               port->irq = platform_get_irq_byname_optional(pdev, name);
                kfree(name);
        }