Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb Claim suspend support.



details:   https://anonhg.NetBSD.org/src/rev/df7be4b09791
branches:  trunk
changeset: 451553:df7be4b09791
user:      maya <maya%NetBSD.org@localhost>
date:      Mon May 27 03:08:13 2019 +0000

description:
Claim suspend support.

>From Uwe Kr?ger in PR kern/42633

diffstat:

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

diffs (28 lines):

diff -r fcdb68e88933 -r df7be4b09791 sys/dev/usb/uhmodem.c
--- a/sys/dev/usb/uhmodem.c     Mon May 27 02:23:16 2019 +0000
+++ b/sys/dev/usb/uhmodem.c     Mon May 27 03:08:13 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uhmodem.c,v 1.19 2019/05/09 02:43:35 mrg Exp $ */
+/*     $NetBSD: uhmodem.c,v 1.20 2019/05/27 03:08:13 maya Exp $        */
 
 /*
  * Copyright (c) 2008 Yojiro UO <yuo%nui.org@localhost>.
@@ -71,7 +71,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uhmodem.c,v 1.19 2019/05/09 02:43:35 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uhmodem.c,v 1.20 2019/05/27 03:08:13 maya Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -365,6 +365,9 @@
        usbd_add_drv_event(USB_EVENT_DRIVER_ATTACH, sc->sc_udev,
                           sc->sc_dev);
 
+       if (!pmf_device_register(self, NULL, NULL))
+               aprint_error_dev(self, "couldn't establish power handler\n");
+
        return;
 
 error:



Home | Main Index | Thread Index | Old Index