Correct the order of arguments to mtx_init().

PR:		186701
Submitted by:	Takanori Sawada <tak.swd at gmail.com>
MFC after:	2 weeks
This commit is contained in:
brueffer 2014-02-14 11:18:15 +00:00
parent 959dc042be
commit 1693f71657
3 changed files with 3 additions and 3 deletions

View File

@ -170,7 +170,7 @@ bcm_mbox_attach(device_t dev)
return (ENXIO);
}
mtx_init(&sc->lock, "vcio mbox", MTX_DEF, 0);
mtx_init(&sc->lock, "vcio mbox", NULL, MTX_DEF);
for (i = 0; i < BCM2835_MBOX_CHANS; i++) {
sc->valid[0] = 0;
sc->msg[0] = 0;

View File

@ -174,7 +174,7 @@ nandbus_attach(device_t dev)
nfc = device_get_parent(dev);
nfc_sc = device_get_softc(nfc);
mtx_init(&sc->nandbus_mtx, "nandbus lock", MTX_DEF, 0);
mtx_init(&sc->nandbus_mtx, "nandbus lock", NULL, MTX_DEF);
cv_init(&sc->nandbus_cv, "nandbus cv");
/* Check each possible CS for existing nand devices */

View File

@ -300,7 +300,7 @@ ofw_real_init(ofw_t ofw, void *openfirm)
{
openfirmware = (int (*)(void *))openfirm;
mtx_init(&of_bounce_mtx, "OF Bounce Page", MTX_DEF, 0);
mtx_init(&of_bounce_mtx, "OF Bounce Page", NULL, MTX_DEF);
of_bounce_virt = NULL;
return (0);
}