Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/scsipi uk(4) is safe to suspend, register it as such



details:   https://anonhg.NetBSD.org/src/rev/4510736457f5
branches:  trunk
changeset: 346886:4510736457f5
user:      maya <maya%NetBSD.org@localhost>
date:      Fri Aug 05 17:04:58 2016 +0000

description:
uk(4) is safe to suspend, register it as such

diffstat:

 sys/dev/scsipi/uk.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 3754951f9627 -r 4510736457f5 sys/dev/scsipi/uk.c
--- a/sys/dev/scsipi/uk.c       Fri Aug 05 17:04:52 2016 +0000
+++ b/sys/dev/scsipi/uk.c       Fri Aug 05 17:04:58 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uk.c,v 1.63 2016/07/14 04:00:46 msaitoh Exp $  */
+/*     $NetBSD: uk.c,v 1.64 2016/08/05 17:04:58 maya Exp $     */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uk.c,v 1.63 2016/07/14 04:00:46 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uk.c,v 1.64 2016/08/05 17:04:58 maya Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -116,6 +116,9 @@
 
        aprint_naive("\n");
        aprint_normal("\n");
+
+       if (!pmf_device_register(self, NULL, NULL))
+               aprint_error_dev(self, "couldn't establish power handler\n");
 }
 
 static int



Home | Main Index | Thread Index | Old Index