Module Name:    src
Committed By:   joerg
Date:           Thu Feb 11 18:24:48 UTC 2010

Modified Files:
        src/sys/dev: cgd.c

Log Message:
Register with pmf.


To generate a diff of this commit:
cvs rdiff -u -r1.69 -r1.70 src/sys/dev/cgd.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/dev/cgd.c
diff -u src/sys/dev/cgd.c:1.69 src/sys/dev/cgd.c:1.70
--- src/sys/dev/cgd.c:1.69	Sat Jan 23 18:31:04 2010
+++ src/sys/dev/cgd.c	Thu Feb 11 18:24:48 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: cgd.c,v 1.69 2010/01/23 18:31:04 bouyer Exp $ */
+/* $NetBSD: cgd.c,v 1.70 2010/02/11 18:24:48 joerg Exp $ */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cgd.c,v 1.69 2010/01/23 18:31:04 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cgd.c,v 1.70 2010/02/11 18:24:48 joerg Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -187,6 +187,9 @@
 	simple_lock_init(&sc->sc_slock);
 	dk_sc_init(&sc->sc_dksc, sc, device_xname(sc->sc_dev));
 	disk_init(&sc->sc_dksc.sc_dkdev, sc->sc_dksc.sc_xname, &cgddkdriver);
+
+	 if (!pmf_device_register(self, NULL, NULL))
+		aprint_error_dev(self, "unable to register power management hooks\n");
 }
 
 

Reply via email to