Commit 2e269622 authored by Paul Cercueil's avatar Paul Cercueil Committed by David S. Miller

net: davicom: Use platform_get_irq_optional()

The second IRQ line really is optional, so use
platform_get_irq_optional() to obtain it.
Signed-off-by: default avatarPaul Cercueil <paul@crapouillou.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent cf9e60aa
...@@ -1507,7 +1507,7 @@ dm9000_probe(struct platform_device *pdev) ...@@ -1507,7 +1507,7 @@ dm9000_probe(struct platform_device *pdev)
goto out; goto out;
} }
db->irq_wake = platform_get_irq(pdev, 1); db->irq_wake = platform_get_irq_optional(pdev, 1);
if (db->irq_wake >= 0) { if (db->irq_wake >= 0) {
dev_dbg(db->dev, "wakeup irq %d\n", db->irq_wake); dev_dbg(db->dev, "wakeup irq %d\n", db->irq_wake);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment