Source-Changes-HG archive

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

[src/trunk]: src/sys/opencrypto register with pmf.



details:   https://anonhg.NetBSD.org/src/rev/97f14f32165a
branches:  trunk
changeset: 796841:97f14f32165a
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Jun 21 17:34:30 2014 +0000

description:
register with pmf.

diffstat:

 sys/opencrypto/cryptosoft.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 0a626b073676 -r 97f14f32165a sys/opencrypto/cryptosoft.c
--- a/sys/opencrypto/cryptosoft.c       Sat Jun 21 10:23:07 2014 +0000
+++ b/sys/opencrypto/cryptosoft.c       Sat Jun 21 17:34:30 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cryptosoft.c,v 1.44 2014/01/01 16:06:01 pgoyette Exp $ */
+/*     $NetBSD: cryptosoft.c,v 1.45 2014/06/21 17:34:30 christos Exp $ */
 /*     $FreeBSD: src/sys/opencrypto/cryptosoft.c,v 1.2.2.1 2002/11/21 23:34:23 sam Exp $       */
 /*     $OpenBSD: cryptosoft.c,v 1.35 2002/04/26 08:43:50 deraadt Exp $ */
 
@@ -24,7 +24,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cryptosoft.c,v 1.44 2014/01/01 16:06:01 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cryptosoft.c,v 1.45 2014/06/21 17:34:30 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1333,6 +1333,9 @@
 {
 
        swcr_init();
+
+       if (!pmf_device_register(self, NULL, NULL))
+               aprint_error_dev(self, "couldn't establish power handler\n");
 }
 
 int    swcrypto_detach(device_t, int);



Home | Main Index | Thread Index | Old Index