summaryrefslogtreecommitdiff
path: root/package/broadcom-diag/src
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-05-04 17:35:58 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-05-04 17:35:58 +0000
commitd5e01e3fd2db04b895d87e4fb83e293b763c0f69 (patch)
treeeee5d64b1e22c152cb66ffe352e6d0da53e4c41d /package/broadcom-diag/src
parentb95c73db7f5fb48cbbd2b7c711bf61e8e1391d67 (diff)
fix gpio interrupts on broadcom (thanks, jpcass)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7090 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/broadcom-diag/src')
-rw-r--r--package/broadcom-diag/src/gpio.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/broadcom-diag/src/gpio.h b/package/broadcom-diag/src/gpio.h
index 982caddae4..16f6ca41cd 100644
--- a/package/broadcom-diag/src/gpio.h
+++ b/package/broadcom-diag/src/gpio.h
@@ -68,7 +68,8 @@ static void gpio_set_irqenable(int enabled, irqreturn_t (*handler)(int, void *,
else
free_irq(irq, handler);
- gpio_intmask(1, (enabled ? 1 : 0));
+ if (ssb.chipco.dev)
+ ssb_write32_masked(ssb.chipco.dev, SSB_CHIPCO_IRQMASK, SSB_CHIPCO_IRQ_GPIO, (enabled ? SSB_CHIPCO_IRQ_GPIO : 0));
}
#else