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
This commit is contained in:
Don Lewis 2012-01-11 21:38:05 +00:00
parent 70e0bbedef
commit 930a96e4fa
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=229984

View File

@ -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;