Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/isa Add NULL pmf handlers.



details:   https://anonhg.NetBSD.org/src/rev/259399da0016
branches:  trunk
changeset: 772824:259399da0016
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Tue Jan 17 16:28:33 2012 +0000

description:
Add NULL pmf handlers.

diffstat:

 sys/dev/isa/wbsio.c |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 4384c17028d4 -r 259399da0016 sys/dev/isa/wbsio.c
--- a/sys/dev/isa/wbsio.c       Tue Jan 17 16:27:19 2012 +0000
+++ b/sys/dev/isa/wbsio.c       Tue Jan 17 16:28:33 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wbsio.c,v 1.3 2011/05/18 01:03:15 dyoung Exp $ */
+/*     $NetBSD: wbsio.c,v 1.4 2012/01/17 16:28:33 jakllsch Exp $       */
 /*     $OpenBSD: wbsio.c,v 1.5 2009/03/29 21:53:52 sthen Exp $ */
 /*
  * Copyright (c) 2008 Mark Kettenis <kettenis%openbsd.org@localhost>
@@ -216,6 +216,9 @@
        /* Escape from configuration mode */
        wbsio_conf_disable(sc->sc_iot, sc->sc_ioh);
 
+       if (!pmf_device_register(self, NULL, NULL))
+               aprint_error_dev(self, "couldn't establish power handler\n");
+
        if (iobase == 0)
                return;
 



Home | Main Index | Thread Index | Old Index