diff options
author | rpaulo <rpaulo@FreeBSD.org> | 2012-08-17 04:44:57 +0000 |
---|---|---|
committer | rpaulo <rpaulo@FreeBSD.org> | 2012-08-17 04:44:57 +0000 |
commit | 15835e923bd523ef918dc1c1c26cf070050e17e2 (patch) | |
tree | e99285c927a8c45c2a7ff914083574610d730648 /sys/mips/cavium | |
parent | b788233f5b934c7f58e8538a548af4af8b800c5d (diff) | |
download | FreeBSD-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/cavium')
-rw-r--r-- | sys/mips/cavium/octeon_gpio.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/mips/cavium/octeon_gpio.c b/sys/mips/cavium/octeon_gpio.c index 9ef09f0..96ce39c 100644 --- a/sys/mips/cavium/octeon_gpio.c +++ b/sys/mips/cavium/octeon_gpio.c @@ -383,8 +383,7 @@ octeon_gpio_attach(device_t dev) KASSERT((device_get_unit(dev) == 0), ("octeon_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); for ( i = 0; i < OCTEON_GPIO_IRQS; i++) { if ((sc->gpio_irq_res[i] = bus_alloc_resource(dev, |