OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf9e60a
)
net: davicom: Use platform_get_irq_optional()
author
Paul Cercueil
<paul@crapouillou.net>
Sun, 7 Mar 2021 13:17:49 +0000
(13:17 +0000)
committer
David S. Miller
<davem@davemloft.net>
Mon, 8 Mar 2021 20:01:58 +0000
(12:01 -0800)
The second IRQ line really is optional, so use
platform_get_irq_optional() to obtain it.
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/davicom/dm9000.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/davicom/dm9000.c
b/drivers/net/ethernet/davicom/dm9000.c
index
a95e95c
..
252adfa
100644
(file)
--- a/
drivers/net/ethernet/davicom/dm9000.c
+++ b/
drivers/net/ethernet/davicom/dm9000.c
@@
-1507,7
+1507,7
@@
dm9000_probe(struct platform_device *pdev)
goto out;
}
- db->irq_wake = platform_get_irq(pdev, 1);
+ db->irq_wake = platform_get_irq
_optional
(pdev, 1);
if (db->irq_wake >= 0) {
dev_dbg(db->dev, "wakeup irq %d\n", db->irq_wake);