Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb allow suspend with uftdi(4). it works fine.
details: https://anonhg.NetBSD.org/src/rev/b7b2f93f9f40
branches: trunk
changeset: 819741:b7b2f93f9f40
user: maya <maya%NetBSD.org@localhost>
date: Thu Dec 15 17:21:21 2016 +0000
description:
allow suspend with uftdi(4). it works fine.
diffstat:
sys/dev/usb/uftdi.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 8a931d3d0f35 -r b7b2f93f9f40 sys/dev/usb/uftdi.c
--- a/sys/dev/usb/uftdi.c Thu Dec 15 15:03:17 2016 +0000
+++ b/sys/dev/usb/uftdi.c Thu Dec 15 17:21:21 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uftdi.c,v 1.63 2016/11/25 12:56:29 skrll Exp $ */
+/* $NetBSD: uftdi.c,v 1.64 2016/12/15 17:21:21 maya Exp $ */
/*
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uftdi.c,v 1.63 2016/11/25 12:56:29 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uftdi.c,v 1.64 2016/12/15 17:21:21 maya Exp $");
#ifdef _KERNEL_OPT
#include "opt_usb.h"
@@ -341,6 +341,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;
bad:
Home |
Main Index |
Thread Index |
Old Index