summaryrefslogtreecommitdiffstats
path: root/sys/arm/at91/at91.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2012-07-10 15:02:29 +0000
committerimp <imp@FreeBSD.org>2012-07-10 15:02:29 +0000
commit296ee98cf617a1b6cf917a4e8edc5f246e75d775 (patch)
treee38ff59d508b481c21ce001ac03ed1270ac3f274 /sys/arm/at91/at91.c
parent161f1787a0c402cfebc33d0a99b6be5a04dd5c6f (diff)
downloadFreeBSD-src-296ee98cf617a1b6cf917a4e8edc5f246e75d775.zip
FreeBSD-src-296ee98cf617a1b6cf917a4e8edc5f246e75d775.tar.gz
Remove a useless bit of indirection. On all Atmel ARM products, irq 1
is the system IRQ, so use the define for it and get on with life.
Diffstat (limited to 'sys/arm/at91/at91.c')
-rw-r--r--sys/arm/at91/at91.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arm/at91/at91.c b/sys/arm/at91/at91.c
index fc79da2..da3aa72 100644
--- a/sys/arm/at91/at91.c
+++ b/sys/arm/at91/at91.c
@@ -365,7 +365,7 @@ at91_setup_intr(device_t dev, device_t child,
struct at91_softc *sc = device_get_softc(dev);
int error;
- if (rman_get_start(ires) == sc->sc_irq_system && filt == NULL)
+ if (rman_get_start(ires) == AT91_IRQ_SYSTEM && filt == NULL)
panic("All system interrupt ISRs must be FILTER");
error = BUS_SETUP_INTR(device_get_parent(dev), child, ires, flags,
filt, intr, arg, cookiep);
OpenPOWER on IntegriCloud