mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
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:
parent
5800091a20
commit
007fc3c0ca
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user