Module Name: src Committed By: maya Date: Mon May 27 03:08:13 UTC 2019
Modified Files: src/sys/dev/usb: uhmodem.c Log Message: Claim suspend support. >From Uwe Krüger in PR kern/42633 To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20 src/sys/dev/usb/uhmodem.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/uhmodem.c diff -u src/sys/dev/usb/uhmodem.c:1.19 src/sys/dev/usb/uhmodem.c:1.20 --- src/sys/dev/usb/uhmodem.c:1.19 Thu May 9 02:43:35 2019 +++ src/sys/dev/usb/uhmodem.c Mon May 27 03:08:13 2019 @@ -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 <y...@nui.org>. @@ -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 @@ uhmodem_attach(device_t parent, device_t 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: