Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev Register with pmf.
details: https://anonhg.NetBSD.org/src/rev/8fb221b1d1b8
branches: trunk
changeset: 752039:8fb221b1d1b8
user: joerg <joerg%NetBSD.org@localhost>
date: Thu Feb 11 18:24:48 2010 +0000
description:
Register with pmf.
diffstat:
sys/dev/cgd.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 0deed2add01c -r 8fb221b1d1b8 sys/dev/cgd.c
--- a/sys/dev/cgd.c Thu Feb 11 18:23:32 2010 +0000
+++ b/sys/dev/cgd.c Thu Feb 11 18:24:48 2010 +0000
@@ -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");
}
Home |
Main Index |
Thread Index |
Old Index