Date: Thu, 23 Jan 2014 01:09:34 +0000 (UTC) From: Justin Hibbits <jhibbits@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r261068 - head/sys/dev/adb Message-ID: <201401230109.s0N19YT9060195@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jhibbits Date: Thu Jan 23 01:09:33 2014 New Revision: 261068 URL: http://svnweb.freebsd.org/changeset/base/261068 Log: Properly sort the arguments to mtx_init(9). PR: misc/186020 Submitted by: alfred MFC after: 1 week Modified: head/sys/dev/adb/adb_kbd.c head/sys/dev/adb/adb_mouse.c Modified: head/sys/dev/adb/adb_kbd.c ============================================================================== --- head/sys/dev/adb/adb_kbd.c Thu Jan 23 00:46:29 2014 (r261067) +++ head/sys/dev/adb/adb_kbd.c Thu Jan 23 01:09:33 2014 (r261068) @@ -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); Modified: head/sys/dev/adb/adb_mouse.c ============================================================================== --- head/sys/dev/adb/adb_mouse.c Thu Jan 23 00:46:29 2014 (r261067) +++ head/sys/dev/adb/adb_mouse.c Thu Jan 23 01:09:33 2014 (r261068) @@ -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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401230109.s0N19YT9060195>