svn commit: r230317 - stable/9/sys/dev/pst

Don Lewis truckman at FreeBSD.org
Wed Jan 18 21:49:37 UTC 2012


Author: truckman
Date: Wed Jan 18 21:49:37 2012
New Revision: 230317
URL: http://svn.freebsd.org/changeset/base/230317

Log:
  MFC: r229984
  
  Pass the arguments to mtx_init() in the correct order.  There should be
  no change to the binary because the value of MTX_DEF is zero and there
  is a visible function prototype.

Modified:
  stable/9/sys/dev/pst/pst-pci.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/dev/pst/pst-pci.c
==============================================================================
--- stable/9/sys/dev/pst/pst-pci.c	Wed Jan 18 21:27:49 2012	(r230316)
+++ stable/9/sys/dev/pst/pst-pci.c	Wed Jan 18 21:49:37 2012	(r230317)
@@ -95,7 +95,7 @@ iop_pci_attach(device_t dev)
     sc->ibase = rman_get_virtual(sc->r_mem);
     sc->reg = (struct i2o_registers *)sc->ibase;
     sc->dev = dev;
-    mtx_init(&sc->mtx, "pst lock", MTX_DEF, 0);
+    mtx_init(&sc->mtx, "pst lock", NULL, MTX_DEF);
 
     if (!iop_init(sc))
 	return 0;


More information about the svn-src-stable mailing list