summaryrefslogtreecommitdiffstats
path: root/sys/arm/at91/at91.c
diff options
context:
space:
mode:
authorgonzo <gonzo@FreeBSD.org>2012-07-17 03:18:12 +0000
committergonzo <gonzo@FreeBSD.org>2012-07-17 03:18:12 +0000
commitdf07abd457b125e834e6e9d477a00c8571b967f3 (patch)
treee995d73c6f0233d1b86fb92064f5bc44d01df00d /sys/arm/at91/at91.c
parentad2692aed9926b184f3b9376b29d1dab33d2497f (diff)
downloadFreeBSD-src-df07abd457b125e834e6e9d477a00c8571b967f3.zip
FreeBSD-src-df07abd457b125e834e6e9d477a00c8571b967f3.tar.gz
Move unmask IRQ function call up to nexus device level.
FDT-enabled targets were broken after r238043 that relies on device up the hierarchy to properly setup interrupt. nexus device for ARM platforms did job only partially: setting handler but not unmasking interrupt. Unmasking was performed by platform code. Reviewed by: andrew@
Diffstat (limited to 'sys/arm/at91/at91.c')
-rw-r--r--sys/arm/at91/at91.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/arm/at91/at91.c b/sys/arm/at91/at91.c
index 4fe6143..deb3c38 100644
--- a/sys/arm/at91/at91.c
+++ b/sys/arm/at91/at91.c
@@ -397,7 +397,6 @@ at91_setup_intr(device_t dev, device_t child,
struct resource *ires, int flags, driver_filter_t *filt,
driver_intr_t *intr, void *arg, void **cookiep)
{
- struct at91_softc *sc = device_get_softc(dev);
int error;
if (rman_get_start(ires) == AT91_IRQ_SYSTEM && filt == NULL)
@@ -407,8 +406,6 @@ at91_setup_intr(device_t dev, device_t child,
if (error)
return (error);
- bus_space_write_4(sc->sc_st, sc->sc_aic_sh, IC_IECR,
- 1 << rman_get_start(ires));
return (0);
}
OpenPOWER on IntegriCloud