Skip to content

Commit

Permalink
net: davicom: Use platform_get_irq_optional()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
pcercuei authored and davem330 committed Mar 8, 2021
1 parent cf9e60a commit 2e26962
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/davicom/dm9000.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 2e26962

Please sign in to comment.