Module Name: src
Committed By: uwe
Date: Sun Apr 5 02:19:57 UTC 2009
Modified Files:
src/sys/arch/hpcsh/dev: j6x0tp.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.22 -r1.23 src/sys/arch/hpcsh/dev/j6x0tp.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/hpcsh/dev/j6x0tp.c
diff -u src/sys/arch/hpcsh/dev/j6x0tp.c:1.22 src/sys/arch/hpcsh/dev/j6x0tp.c:1.23
--- src/sys/arch/hpcsh/dev/j6x0tp.c:1.22 Thu Mar 27 03:58:47 2008
+++ src/sys/arch/hpcsh/dev/j6x0tp.c Sun Apr 5 02:19:57 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: j6x0tp.c,v 1.22 2008/03/27 03:58:47 uwe Exp $ */
+/* $NetBSD: j6x0tp.c,v 1.23 2009/04/05 02:19:57 uwe Exp $ */
/*
* Copyright (c) 2003 Valeriy E. Ushakov
@@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: j6x0tp.c,v 1.22 2008/03/27 03:58:47 uwe Exp $");
+__KERNEL_RCSID(0, "$NetBSD: j6x0tp.c,v 1.23 2009/04/05 02:19:57 uwe Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@@ -279,6 +279,9 @@
intc_intr_establish(SH7709_INTEVT2_IRQ3, IST_EDGE, IPL_TTY,
j6x0tp_intr, sc);
intc_intr_disable(SH7709_INTEVT2_IRQ3);
+
+ if (!pmf_device_register(self, NULL, NULL))
+ aprint_error_dev(self, "unable to establish power handler\n");
}