summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/arm/arm/nexus.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arm/arm/nexus.c b/sys/arm/arm/nexus.c
index 1fb3591..e462364 100644
--- a/sys/arm/arm/nexus.c
+++ b/sys/arm/arm/nexus.c
@@ -139,8 +139,10 @@ static int
nexus_teardown_intr(device_t dev, device_t child, struct resource *r, void *ih)
{
int error;
+ int i;
- arm_mask_irq(rman_get_start(r));
+ for (i = rman_get_start(r); i <= rman_get_end(r); i++)
+ arm_mask_irq(rman_get_start(r));
error = arm_remove_irqhandler(ih);
return (error);
}
OpenPOWER on IntegriCloud