projects
/
openwrt
/
staging
/
neocturne.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e22255f
)
fix gpio interrupts on broadcom (thanks, jpcass)
author
Felix Fietkau
<nbd@openwrt.org>
Fri, 4 May 2007 17:35:58 +0000
(17:35 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Fri, 4 May 2007 17:35:58 +0000
(17:35 +0000)
SVN-Revision: 7090
package/broadcom-diag/src/gpio.h
patch
|
blob
|
history
diff --git
a/package/broadcom-diag/src/gpio.h
b/package/broadcom-diag/src/gpio.h
index 982caddae4e384616f472d0bd75013545141967d..16f6ca41cdade7350c76c6b460538d0ca1ea92b9 100644
(file)
--- 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