Commit 6b50d038 authored by Andrew Ruder's avatar Andrew Ruder Committed by David S. Miller

dm9000: acquire irq flags from device tree

The DM9000 supports both active high interrupts and active low interrupts.
This is configured via the attached EEPROM.  In the device-tree case, make sure
that the DM9000 driver passes the correct flags to request_irq.
Signed-off-by: default avatarAndrew Ruder <andrew.ruder@elecsyscorp.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3b392ddb
...@@ -1291,6 +1291,9 @@ dm9000_open(struct net_device *dev) ...@@ -1291,6 +1291,9 @@ dm9000_open(struct net_device *dev)
/* If there is no IRQ type specified, default to something that /* If there is no IRQ type specified, default to something that
* may work, and tell the user that this is a problem */ * may work, and tell the user that this is a problem */
if (irqflags == IRQF_TRIGGER_NONE)
irqflags = irq_get_trigger_type(dev->irq);
if (irqflags == IRQF_TRIGGER_NONE) if (irqflags == IRQF_TRIGGER_NONE)
dev_warn(db->dev, "WARNING: no IRQ resource flags set.\n"); dev_warn(db->dev, "WARNING: no IRQ resource flags set.\n");
......
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