Properly sort the arguments to mtx_init(9).
PR: misc/186020 Submitted by: alfred MFC after: 1 week
This commit is contained in:
parent
8fcaeb45bb
commit
c821b4820f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=261068
@ -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);
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user