svn commit: r268057 - projects/pmac_pmu/sys/kern

Justin Hibbits jhibbits at FreeBSD.org
Mon Jun 30 19:30:24 UTC 2014


Author: jhibbits
Date: Mon Jun 30 19:30:23 2014
New Revision: 268057
URL: http://svnweb.freebsd.org/changeset/base/268057

Log:
  Fix state -> flags from the SUSPENDED change to be a flag.

Modified:
  projects/pmac_pmu/sys/kern/subr_bus.c

Modified: projects/pmac_pmu/sys/kern/subr_bus.c
==============================================================================
--- projects/pmac_pmu/sys/kern/subr_bus.c	Mon Jun 30 19:09:24 2014	(r268056)
+++ projects/pmac_pmu/sys/kern/subr_bus.c	Mon Jun 30 19:30:23 2014	(r268057)
@@ -3691,7 +3691,7 @@ bus_generic_suspend(device_t dev)
 		return (0);
 
 	TAILQ_FOREACH(child, &dev->children, link) {
-		if (!(child->state & DF_SUSPENDED))
+		if (!(child->flags & DF_SUSPENDED))
 			error = bus_generic_suspend(child);
 		if (error == 0) {
 			if (child->pass >= bus_current_pass && child->state == DS_ATTACHED) {


More information about the svn-src-projects mailing list