projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5800091
)
net: dsa: b53: per-port interrupts are optional
author
Florian Fainelli
<f.fainelli@gmail.com>
Fri, 17 Apr 2020 18:33:41 +0000
(11:33 -0700)
committer
David 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
patch
|
blob
|
history
diff --git
a/drivers/net/dsa/b53/b53_srab.c
b/drivers/net/dsa/b53/b53_srab.c
index
0a1be52
..
1207c30
100644
(file)
--- 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);
}