Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hpcsh/dev Register with pmf(9), tell it we don't ne...
details: https://anonhg.NetBSD.org/src/rev/ee11ed25c828
branches: trunk
changeset: 750155:ee11ed25c828
user: kiyohara <kiyohara%NetBSD.org@localhost>
date: Sat Dec 19 07:09:28 2009 +0000
description:
Register with pmf(9), tell it we don't need anything.
Based on rev 1.15 of src/sys/arch/hpcsh/dev/j6x0pwr.c
diffstat:
sys/arch/hpcsh/dev/psh3pwr.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r e8b2c3377512 -r ee11ed25c828 sys/arch/hpcsh/dev/psh3pwr.c
--- a/sys/arch/hpcsh/dev/psh3pwr.c Sat Dec 19 07:08:55 2009 +0000
+++ b/sys/arch/hpcsh/dev/psh3pwr.c Sat Dec 19 07:09:28 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: psh3pwr.c,v 1.3 2008/03/31 15:49:29 kiyohara Exp $ */
+/* $NetBSD: psh3pwr.c,v 1.4 2009/12/19 07:09:28 kiyohara Exp $ */
/*
* Copyright (c) 2005, 2007 KIYOHARA Takashi
* All rights reserved.
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: psh3pwr.c,v 1.3 2008/03/31 15:49:29 kiyohara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: psh3pwr.c,v 1.4 2009/12/19 07:09:28 kiyohara Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@@ -157,6 +157,9 @@
/* XXXX: WindowsCE sets this bit. */
aprint_normal_dev(self, "plug status: %s\n",
psh3pwr_ac_is_off() ? "out" : "in");
+
+ if (!pmf_device_register(self, NULL, NULL))
+ aprint_error_dev(self, "unable to establish power handler\n");
}
Home |
Main Index |
Thread Index |
Old Index