summaryrefslogtreecommitdiffstats
path: root/sys/arm
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2008-05-28 14:35:15 +0000
committerimp <imp@FreeBSD.org>2008-05-28 14:35:15 +0000
commit511de48450e36bbd47df82816d79b10d5eb5b148 (patch)
tree9dad50e2296266b7784c3904b92447a6132192c0 /sys/arm
parent1f11917771da87a3d0ab2a46ece0b69e6c66fc3f (diff)
downloadFreeBSD-src-511de48450e36bbd47df82816d79b10d5eb5b148.zip
FreeBSD-src-511de48450e36bbd47df82816d79b10d5eb5b148.tar.gz
Release the resources for the registers for the TWI device with
SYS_RES_MEMORY to match how we allocate them... Noticed by: Ian Lepore
Diffstat (limited to 'sys/arm')
-rw-r--r--sys/arm/at91/at91_twi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arm/at91/at91_twi.c b/sys/arm/at91/at91_twi.c
index 565df58..0d8a2d4 100644
--- a/sys/arm/at91/at91_twi.c
+++ b/sys/arm/at91/at91_twi.c
@@ -192,7 +192,7 @@ at91_twi_deactivate(device_t dev)
sc->intrhand = 0;
bus_generic_detach(sc->dev);
if (sc->mem_res)
- bus_release_resource(dev, SYS_RES_IOPORT,
+ bus_release_resource(dev, SYS_RES_MEMORY,
rman_get_rid(sc->mem_res), sc->mem_res);
sc->mem_res = 0;
if (sc->irq_res)
OpenPOWER on IntegriCloud