Module Name:    src
Committed By:   maya
Date:           Fri Dec 16 14:56:34 UTC 2016

Modified Files:
        src/sys/dev/usb: uslsa.c

Log Message:
Don't block suspend when uslsa(4) is attached - it works fine.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/sys/dev/usb/uslsa.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/usb/uslsa.c
diff -u src/sys/dev/usb/uslsa.c:1.22 src/sys/dev/usb/uslsa.c:1.23
--- src/sys/dev/usb/uslsa.c:1.22	Fri Nov 25 12:56:29 2016
+++ src/sys/dev/usb/uslsa.c	Fri Dec 16 14:56:34 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: uslsa.c,v 1.22 2016/11/25 12:56:29 skrll Exp $ */
+/* $NetBSD: uslsa.c,v 1.23 2016/12/16 14:56:34 maya Exp $ */
 
 /* from ugensa.c */
 
@@ -58,7 +58,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uslsa.c,v 1.22 2016/11/25 12:56:29 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uslsa.c,v 1.23 2016/12/16 14:56:34 maya Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -241,6 +241,9 @@ uslsa_attach(device_t parent, device_t s
 	sc->sc_subdev = config_found_sm_loc(self, "ucombus", NULL, &ucaa,
 	                                    ucomprint, ucomsubmatch);
 
+	if (!pmf_device_register(self, NULL, NULL))
+		aprint_error_dev(self, "couldn't establish power handler\n");
+	
 	return;
 }
 

Reply via email to