svn commit: r260807 - projects/pmac_pmu/sys/powerpc/powermac

Justin Hibbits jhibbits at FreeBSD.org
Fri Jan 17 06:43:36 UTC 2014


Author: jhibbits
Date: Fri Jan 17 06:43:35 2014
New Revision: 260807
URL: http://svnweb.freebsd.org/changeset/base/260807

Log:
  Fix a mis-merge, and remove an unnecessary initialization.

Modified:
  projects/pmac_pmu/sys/powerpc/powermac/pmu.c

Modified: projects/pmac_pmu/sys/powerpc/powermac/pmu.c
==============================================================================
--- projects/pmac_pmu/sys/powerpc/powermac/pmu.c	Fri Jan 17 05:26:55 2014	(r260806)
+++ projects/pmac_pmu/sys/powerpc/powermac/pmu.c	Fri Jan 17 06:43:35 2014	(r260807)
@@ -431,10 +431,6 @@ pmu_attach(device_t dev)
 	    "sleep", CTLTYPE_INT | CTLFLAG_RW, sc, 0,
 	    pmu_sleep, "I", "Put the machine to sleep");
 
-	SYSCTL_ADD_PROC(ctx, SYSCTL_CHILDREN(tree), OID_AUTO,
-	    "sleep", CTLTYPE_INT | CTLFLAG_RW, sc, 0,
-	    pmu_sleep, "I", "Put the machine to sleep");
-
 	if (sc->sc_batteries > 0) {
 		struct sysctl_oid *oid, *battroot;
 		char battnum[2];
@@ -492,7 +488,6 @@ pmu_attach(device_t dev)
 		}
 	}
 
-	sc->lid_closed = 0;
 	/*
 	 * Set up LED interface
 	 */


More information about the svn-src-projects mailing list