summaryrefslogtreecommitdiffstats
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
commita1206669e893f6c3d69b789531a23e5116b48083 (patch)
tree2ccb601a10c309c2c1fe1220f25ce26b21463fc8
parente22255fcebddb6cba283d7f71e85fbcf789d1a6a (diff)
downloadopenwrt-a1206669e893f6c3d69b789531a23e5116b48083.tar.gz
openwrt-a1206669e893f6c3d69b789531a23e5116b48083.tar.bz2
openwrt-a1206669e893f6c3d69b789531a23e5116b48083.zip
fix gpio interrupts on broadcom (thanks, jpcass)
SVN-Revision: 7090
-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