Module Name:    src
Committed By:   maya
Date:           Fri Aug  5 17:04:58 UTC 2016

Modified Files:
        src/sys/dev/scsipi: uk.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.63 -r1.64 src/sys/dev/scsipi/uk.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/dev/scsipi/uk.c
diff -u src/sys/dev/scsipi/uk.c:1.63 src/sys/dev/scsipi/uk.c:1.64
--- src/sys/dev/scsipi/uk.c:1.63	Thu Jul 14 04:00:46 2016
+++ src/sys/dev/scsipi/uk.c	Fri Aug  5 17:04:58 2016
@@ -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 @@ ukattach(device_t parent, device_t self,
 
 	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

Reply via email to