summaryrefslogtreecommitdiff
path: root/drivers/net/dsa/b53
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2020-04-17 21:33:41 +0300
committerDavid S. Miller <davem@davemloft.net>2020-04-19 01:49:39 +0300
commit007fc3c0ca478f3a8ad687cf9ecbe672d3a64700 (patch)
tree6754dadbbe9085a5f8c382a22ba4a76a9a75a024 /drivers/net/dsa/b53
parent5800091a206172e2016e84906035f1d757cc6547 (diff)
downloadlinux-007fc3c0ca478f3a8ad687cf9ecbe672d3a64700.tar.xz
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>
Diffstat (limited to 'drivers/net/dsa/b53')
-rw-r--r--drivers/net/dsa/b53/b53_srab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/dsa/b53/b53_srab.c b/drivers/net/dsa/b53/b53_srab.c
index 0a1be5259be0..1207c3095027 100644
--- a/drivers/net/dsa/b53/b53_srab.c
+++ b/drivers/net/dsa/b53/b53_srab.c
@@ -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);
}