summaryrefslogtreecommitdiffstats
path: root/sys/mips/rt305x
diff options
context:
space:
mode:
authorrpaulo <rpaulo@FreeBSD.org>2012-08-17 04:44:57 +0000
committerrpaulo <rpaulo@FreeBSD.org>2012-08-17 04:44:57 +0000
commit15835e923bd523ef918dc1c1c26cf070050e17e2 (patch)
treee99285c927a8c45c2a7ff914083574610d730648 /sys/mips/rt305x
parentb788233f5b934c7f58e8538a548af4af8b800c5d (diff)
downloadFreeBSD-src-15835e923bd523ef918dc1c1c26cf070050e17e2.zip
FreeBSD-src-15835e923bd523ef918dc1c1c26cf070050e17e2.tar.gz
The GPIO drivers were initialising their mutexes with type of
MTX_NETWORK_LOCK. This is wrong since these mutexes have nothing to do with networking.
Diffstat (limited to 'sys/mips/rt305x')
-rw-r--r--sys/mips/rt305x/rt305x_gpio.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/mips/rt305x/rt305x_gpio.c b/sys/mips/rt305x/rt305x_gpio.c
index a570889..a911b33 100644
--- a/sys/mips/rt305x/rt305x_gpio.c
+++ b/sys/mips/rt305x/rt305x_gpio.c
@@ -447,8 +447,7 @@ rt305x_gpio_attach(device_t dev)
KASSERT((device_get_unit(dev) == 0),
("rt305x_gpio_gpio: Only one gpio module supported"));
- mtx_init(&sc->gpio_mtx, device_get_nameunit(dev), MTX_NETWORK_LOCK,
- MTX_DEF);
+ mtx_init(&sc->gpio_mtx, device_get_nameunit(dev), NULL, MTX_DEF);
/* Map control/status registers. */
sc->gpio_mem_rid = 0;
OpenPOWER on IntegriCloud