Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Mar 2014 21:50:24 +0000 (UTC)
From:      Justin Hibbits <jhibbits@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r262668 - stable/10/sys/dev/adb
Message-ID:  <201403012150.s21LoOQX084784@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhibbits
Date: Sat Mar  1 21:50:23 2014
New Revision: 262668
URL: http://svnweb.freebsd.org/changeset/base/262668

Log:
  MFC r261068
  
  Properly sort the arguments to mtx_init(9).
  
  PR:		misc/186020
  Submitted by:	alfred

Modified:
  stable/10/sys/dev/adb/adb_kbd.c
  stable/10/sys/dev/adb/adb_mouse.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/dev/adb/adb_kbd.c
==============================================================================
--- stable/10/sys/dev/adb/adb_kbd.c	Sat Mar  1 21:22:20 2014	(r262667)
+++ stable/10/sys/dev/adb/adb_kbd.c	Sat Mar  1 21:50:23 2014	(r262668)
@@ -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: stable/10/sys/dev/adb/adb_mouse.c
==============================================================================
--- stable/10/sys/dev/adb/adb_mouse.c	Sat Mar  1 21:22:20 2014	(r262667)
+++ stable/10/sys/dev/adb/adb_mouse.c	Sat Mar  1 21:50:23 2014	(r262668)
@@ -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?201403012150.s21LoOQX084784>