aboutsummaryrefslogtreecommitdiffstats
path: root/package/broadcom-diag
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-05-04 17:35:58 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-05-04 17:35:58 +0000
commitd32ec10e8a7f6ff2ea61a353cbb26f5587a04f00 (patch)
treeeee5d64b1e22c152cb66ffe352e6d0da53e4c41d /package/broadcom-diag
parentad6c3b6fef3328eca2f0752b4d0a00aeb9f4de45 (diff)
downloadupstream-d32ec10e8a7f6ff2ea61a353cbb26f5587a04f00.tar.gz
upstream-d32ec10e8a7f6ff2ea61a353cbb26f5587a04f00.tar.bz2
upstream-d32ec10e8a7f6ff2ea61a353cbb26f5587a04f00.zip
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')
-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