summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2005-01-04 23:45:56 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2005-01-04 23:45:56 +0000
commit7e3510e3a61bceefc96e01273f009de4ef8d2c96 (patch)
treebb8020981e513da22676c950e7c67e7a0a777818
parent576b9785a7769d879a2e974f1ab620a08a1c5845 (diff)
use the new intr_disestablish code.
-rw-r--r--sys/arch/arm/xscale/pxa2x0_gpio.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/sys/arch/arm/xscale/pxa2x0_gpio.c b/sys/arch/arm/xscale/pxa2x0_gpio.c
index 51921ec846e..b771578f6fc 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.4 2005/01/04 05:35:40 drahn Exp $ */
+/* $OpenBSD: pxa2x0_gpio.c,v 1.5 2005/01/04 23:45:55 drahn Exp $ */
/* $NetBSD: pxa2x0_gpio.c,v 1.2 2003/07/15 00:24:55 lukem Exp $ */
/*
@@ -300,20 +300,12 @@ pxa2x0_gpio_intr_disestablish(void *cookie)
sc->sc_handlers[gh->gh_gpio] = NULL;
if (gh->gh_gpio == 0) {
-#if 0
pxa2x0_intr_disestablish(sc->sc_irqcookie[0]);
sc->sc_irqcookie[0] = NULL;
-#else
- panic("pxa2x0_gpio_intr_disestablish: can't unhook GPIO#0");
-#endif
} else
if (gh->gh_gpio == 1) {
-#if 0
pxa2x0_intr_disestablish(sc->sc_irqcookie[1]);
sc->sc_irqcookie[0] = NULL;
-#else
- panic("pxa2x0_gpio_intr_disestablish: can't unhook GPIO#0");
-#endif
}
FREE(gh, M_DEVBUF);