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/8a62dc1ca46f
branches: trunk
changeset: 999271:8a62dc1ca46f
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 b59d8e6f2766 -r 8a62dc1ca46f 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