net: dsa: b53: per-port interrupts are optional

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>
This commit is contained in:
Florian Fainelli 2020-04-17 11:33:41 -07:00 committed by David S. Miller
parent 5800091a20
commit 007fc3c0ca

View 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);
}