Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>

authored by

Ben Dooks and committed by
Jeff Garzik
6ff4ff06 485ca22a

+2 -7
+2 -7
drivers/net/dm9000.c
··· 54 54 #define writesb outsb 55 55 #define writesw outsw 56 56 #define writesl outsl 57 - #define DEFAULT_TRIGGER IRQF_TRIGGER_HIGH 58 - #else 59 - #define DEFAULT_TRIGGER (0) 60 57 #endif 61 58 62 59 /* ··· 1011 1014 /* If there is no IRQ type specified, default to something that 1012 1015 * may work, and tell the user that this is a problem */ 1013 1016 1014 - if (irqflags == IRQF_TRIGGER_NONE) { 1017 + if (irqflags == IRQF_TRIGGER_NONE) 1015 1018 dev_warn(db->dev, "WARNING: no IRQ resource flags set.\n"); 1016 - irqflags = DEFAULT_TRIGGER; 1017 - } 1018 - 1019 + 1019 1020 irqflags |= IRQF_SHARED; 1020 1021 1021 1022 if (request_irq(dev->irq, &dm9000_interrupt, irqflags, dev->name, dev))