Module Name: src
Committed By: uwe
Date: Sun Apr 5 00:17:57 UTC 2009
Modified Files:
src/sys/arch/sh3/dev: rtc.c
Log Message:
Register with pmf(9), tell it we don't need anything.
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/sh3/dev/rtc.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/rtc.c
diff -u src/sys/arch/sh3/dev/rtc.c:1.6 src/sys/arch/sh3/dev/rtc.c:1.7
--- src/sys/arch/sh3/dev/rtc.c:1.6 Tue Dec 16 22:35:25 2008
+++ src/sys/arch/sh3/dev/rtc.c Sun Apr 5 00:17:56 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: rtc.c,v 1.6 2008/12/16 22:35:25 christos Exp $ */
+/* $NetBSD: rtc.c,v 1.7 2009/04/05 00:17:56 uwe Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rtc.c,v 1.6 2008/12/16 22:35:25 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rtc.c,v 1.7 2009/04/05 00:17:56 uwe Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@@ -127,6 +127,9 @@
rtc_gettime_ymdhms(&sc->sc_todr, &dt);
}
#endif
+
+ if (!pmf_device_register(self, NULL, NULL))
+ aprint_error_dev(self, "unable to establish power handler\n");
}