Module Name: src Committed By: skrll Date: Fri Mar 31 10:25:55 UTC 2017
Modified Files: src/sys/dev/usb [netbsd-7-nhusb]: uftdi.c Log Message: revision 1.64 allow suspend with uftdi(4). it works fine. To generate a diff of this commit: cvs rdiff -u -r1.59.4.1.4.2 -r1.59.4.1.4.3 src/sys/dev/usb/uftdi.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/uftdi.c diff -u src/sys/dev/usb/uftdi.c:1.59.4.1.4.2 src/sys/dev/usb/uftdi.c:1.59.4.1.4.3 --- src/sys/dev/usb/uftdi.c:1.59.4.1.4.2 Thu Jan 26 21:54:24 2017 +++ src/sys/dev/usb/uftdi.c Fri Mar 31 10:25:55 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: uftdi.c,v 1.59.4.1.4.2 2017/01/26 21:54:24 skrll Exp $ */ +/* $NetBSD: uftdi.c,v 1.59.4.1.4.3 2017/03/31 10:25:55 skrll Exp $ */ /* * Copyright (c) 2000 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: uftdi.c,v 1.59.4.1.4.2 2017/01/26 21:54:24 skrll Exp $"); +__KERNEL_RCSID(0, "$NetBSD: uftdi.c,v 1.59.4.1.4.3 2017/03/31 10:25:55 skrll Exp $"); #ifdef _KERNEL_OPT #include "opt_usb.h" @@ -341,6 +341,9 @@ uftdi_attach(device_t parent, device_t s 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: