Properly sort the arguments to mtx_init(9).

PR:		misc/186020
Submitted by:	alfred
MFC after:	1 week
This commit is contained in:
Justin Hibbits 2014-01-23 01:09:33 +00:00
parent 8fcaeb45bb
commit c821b4820f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=261068
2 changed files with 2 additions and 2 deletions

View File

@ -304,7 +304,7 @@ adb_kbd_attach(device_t dev)
/* Try stepping forward to the extended keyboard protocol */
adb_set_device_handler(dev,3);
mtx_init(&sc->sc_mutex,KBD_DRIVER_NAME,MTX_DEF,0);
mtx_init(&sc->sc_mutex, KBD_DRIVER_NAME, NULL, MTX_DEF);
cv_init(&sc->sc_cv,KBD_DRIVER_NAME);
callout_init(&sc->sc_repeater, 0);

View File

@ -154,7 +154,7 @@ adb_mouse_attach(device_t dev)
sc = device_get_softc(dev);
sc->sc_dev = dev;
mtx_init(&sc->sc_mtx,"ams",MTX_DEF,0);
mtx_init(&sc->sc_mtx, "ams", NULL, MTX_DEF);
cv_init(&sc->sc_cv,"ams");
sc->flags = 0;