Module Name:    src
Committed By:   macallan
Date:           Tue Jul 26 08:37:45 UTC 2011

Modified Files:
        src/sys/arch/macppc/dev: battery.c

Log Message:
finish device_t-ification


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/sys/arch/macppc/dev/battery.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/macppc/dev/battery.c
diff -u src/sys/arch/macppc/dev/battery.c:1.14 src/sys/arch/macppc/dev/battery.c:1.15
--- src/sys/arch/macppc/dev/battery.c:1.14	Sun Jul 10 14:41:34 2011
+++ src/sys/arch/macppc/dev/battery.c	Tue Jul 26 08:37:45 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: battery.c,v 1.14 2011/07/10 14:41:34 pgoyette Exp $ */
+/*	$NetBSD: battery.c,v 1.15 2011/07/26 08:37:45 macallan Exp $ */
 
 /*-
  * Copyright (c) 2007 Michael Lorenz
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: battery.c,v 1.14 2011/07/10 14:41:34 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: battery.c,v 1.15 2011/07/26 08:37:45 macallan Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -117,6 +117,7 @@
 	struct battery_softc *sc = device_private(self);
 	uint32_t reg;
 
+	sc->sc_dev = self;
 	sc->sc_pmu_ops = baa->baa_pmu_ops;
 	aprint_normal(": legacy battery ");
 

Reply via email to