Module Name: src
Committed By: uwe
Date: Sun Apr 5 00:26:00 UTC 2009
Modified Files:
src/sys/arch/sh3/dev: shb.c
Log Message:
Register null hooks with pmf(9) for now, which is no worse than before
and allows us to test other things.
To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/sh3/dev/shb.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/sh3/dev/shb.c
diff -u src/sys/arch/sh3/dev/shb.c:1.13 src/sys/arch/sh3/dev/shb.c:1.14
--- src/sys/arch/sh3/dev/shb.c:1.13 Mon Apr 28 20:23:35 2008
+++ src/sys/arch/sh3/dev/shb.c Sun Apr 5 00:25:59 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: shb.c,v 1.13 2008/04/28 20:23:35 martin Exp $ */
+/* $NetBSD: shb.c,v 1.14 2009/04/05 00:25:59 uwe Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: shb.c,v 1.13 2008/04/28 20:23:35 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: shb.c,v 1.14 2009/04/05 00:25:59 uwe Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -65,6 +65,13 @@
aprint_normal("\n");
config_search_ia(shb_search, self, "shb", NULL);
+
+ /*
+ * XXX: TODO: provide hooks to manage on-chip modules. For
+ * now register null hooks which is no worse than before.
+ */
+ if (!pmf_device_register(self, NULL, NULL))
+ aprint_error_dev(self, "unable to establish power handler\n");
}
static int