Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-6]: src/sys/dev/usb Pull up following revision(s) (requested by b...
details: https://anonhg.NetBSD.org/src/rev/e1b5cb0ed1a0
branches: netbsd-6
changeset: 777154:e1b5cb0ed1a0
user: snj <snj%NetBSD.org@localhost>
date: Sat Mar 25 17:30:18 2017 +0000
description:
Pull up following revision(s) (requested by bad in ticket #1445):
sys/dev/usb/uplcom.c: revision 1.75
Null suspend/resume handler for uplcom(4).
diffstat:
sys/dev/usb/uplcom.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diffs (38 lines):
diff -r 7b4060f4be75 -r e1b5cb0ed1a0 sys/dev/usb/uplcom.c
--- a/sys/dev/usb/uplcom.c Sat Mar 25 17:26:53 2017 +0000
+++ b/sys/dev/usb/uplcom.c Sat Mar 25 17:30:18 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uplcom.c,v 1.73.2.1 2017/03/25 17:26:53 snj Exp $ */
+/* $NetBSD: uplcom.c,v 1.73.2.2 2017/03/25 17:30:18 snj Exp $ */
/*
* Copyright (c) 2001 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uplcom.c,v 1.73.2.1 2017/03/25 17:26:53 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uplcom.c,v 1.73.2.2 2017/03/25 17:30:18 snj Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -416,6 +416,9 @@
sc->sc_subdev = config_found_sm_loc(self, "ucombus", NULL, &uca,
ucomprint, ucomsubmatch);
+ if (!pmf_device_register(self, NULL, NULL))
+ aprint_error_dev(self, "couldn't establish power handler\n");
+
return;
}
@@ -450,6 +453,9 @@
usbd_add_drv_event(USB_EVENT_DRIVER_DETACH, sc->sc_udev,
sc->sc_dev);
+ if (rv == 0)
+ pmf_device_deregister(self);
+
return (rv);
}
Home |
Main Index |
Thread Index |
Old Index