Commit 6ff4ff06 authored by Ben Dooks's avatar Ben Dooks Committed by Jeff Garzik

DM9000: Remove DEFAULT_TRIGGER for request_irq() flags.

Currently all but one user (AT91SAM9261EK) of the dm9000
driver passes their IRQ flags through the resources attached
to the platform device. This means we can remove the use
of DEFAULT_TRIGGER as the blackfin machines all seem to
have their triggers set properly.
Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
parent 485ca22a
...@@ -54,9 +54,6 @@ ...@@ -54,9 +54,6 @@
#define writesb outsb #define writesb outsb
#define writesw outsw #define writesw outsw
#define writesl outsl #define writesl outsl
#define DEFAULT_TRIGGER IRQF_TRIGGER_HIGH
#else
#define DEFAULT_TRIGGER (0)
#endif #endif
/* /*
...@@ -1014,11 +1011,9 @@ dm9000_open(struct net_device *dev) ...@@ -1014,11 +1011,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) { 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");
irqflags = DEFAULT_TRIGGER;
}
irqflags |= IRQF_SHARED; irqflags |= IRQF_SHARED;
if (request_irq(dev->irq, &dm9000_interrupt, irqflags, dev->name, dev)) if (request_irq(dev->irq, &dm9000_interrupt, irqflags, dev->name, dev))
......
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