summaryrefslogtreecommitdiff
path: root/sys/arch/arm/xscale
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2005-02-17 22:05:57 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2005-02-17 22:05:57 +0000
commitc871ab511a23f48ab6bd08cea2c3bba56c5540d5 (patch)
tree178d52be4b0fd3b2311f24c1bb9bc90698e78a25 /sys/arch/arm/xscale
parent17d2c3b56ac8e2dee06c53e5cb3211c797c085e1 (diff)
allow intr_establish to be used with any in gpio
ok drahn@
Diffstat (limited to 'sys/arch/arm/xscale')
-rw-r--r--sys/arch/arm/xscale/pxa2x0_gpio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/arm/xscale/pxa2x0_gpio.c b/sys/arch/arm/xscale/pxa2x0_gpio.c
index e8b38ff9569..e440fc160c8 100644
--- a/sys/arch/arm/xscale/pxa2x0_gpio.c
+++ b/sys/arch/arm/xscale/pxa2x0_gpio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pxa2x0_gpio.c,v 1.13 2005/01/24 13:32:14 dlg Exp $ */
+/* $OpenBSD: pxa2x0_gpio.c,v 1.14 2005/02/17 22:05:56 dlg Exp $ */
/* $NetBSD: pxa2x0_gpio.c,v 1.2 2003/07/15 00:24:55 lukem Exp $ */
/*
@@ -230,7 +230,7 @@ pxa2x0_gpio_intr_establish(u_int gpio, int level, int spl, int (*func)(void *),
#endif
#endif
- if (!GPIO_IS_GPIO_IN(pxa2x0_gpio_get_function(gpio)))
+ if (GPIO_FN_IS_OUT(pxa2x0_gpio_get_function(gpio)) != GPIO_IN)
panic("pxa2x0_gpio_intr_establish: Pin %d not GPIO_IN", gpio);
switch (level) {