mirror of
https://github.com/torvalds/linux.git
synced 2024-12-03 17:41:22 +00:00
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: Paul Cercueil <paul@crapouillou.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
cf9e60aa69
commit
2e26962236
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user