summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortruckman <truckman@FreeBSD.org>2012-01-11 21:38:05 +0000
committertruckman <truckman@FreeBSD.org>2012-01-11 21:38:05 +0000
commit06d2e3d7cfade0206066c309ebf2b33cfadbce68 (patch)
tree2e4d157e0116f1d7b362b712d4af0c4bfaf77c45
parent42fe35cfd73ed8485dbe5f661f0086352f710efa (diff)
downloadFreeBSD-src-06d2e3d7cfade0206066c309ebf2b33cfadbce68.zip
FreeBSD-src-06d2e3d7cfade0206066c309ebf2b33cfadbce68.tar.gz
Pass the arguments to mtx_init() in the correct order. There should be
no change to the binary because the value of MTX_DEF is zero and there is a visible function prototype. MFC after: 1 week
-rw-r--r--sys/dev/pst/pst-pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pst/pst-pci.c b/sys/dev/pst/pst-pci.c
index c5f4a85..7b9626f 100644
--- a/sys/dev/pst/pst-pci.c
+++ b/sys/dev/pst/pst-pci.c
@@ -95,7 +95,7 @@ iop_pci_attach(device_t dev)
sc->ibase = rman_get_virtual(sc->r_mem);
sc->reg = (struct i2o_registers *)sc->ibase;
sc->dev = dev;
- mtx_init(&sc->mtx, "pst lock", MTX_DEF, 0);
+ mtx_init(&sc->mtx, "pst lock", NULL, MTX_DEF);
if (!iop_init(sc))
return 0;
OpenPOWER on IntegriCloud