Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb add (empty, pretty much like all other usb) pmf ...



details:   https://anonhg.NetBSD.org/src/rev/ca8c9eb2e6ae
branches:  trunk
changeset: 329111:ca8c9eb2e6ae
user:      mrg <mrg%NetBSD.org@localhost>
date:      Thu May 08 05:59:09 2014 +0000

description:
add (empty, pretty much like all other usb) pmf support.

diffstat:

 sys/dev/usb/if_urtwn.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 97e07694c9ab -r ca8c9eb2e6ae sys/dev/usb/if_urtwn.c
--- a/sys/dev/usb/if_urtwn.c    Wed May 07 22:53:34 2014 +0000
+++ b/sys/dev/usb/if_urtwn.c    Thu May 08 05:59:09 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_urtwn.c,v 1.29 2014/02/16 16:13:37 christos Exp $   */
+/*     $NetBSD: if_urtwn.c,v 1.30 2014/05/08 05:59:09 mrg Exp $        */
 /*     $OpenBSD: if_urtwn.c,v 1.20 2011/11/26 06:39:33 ckuethe Exp $   */
 
 /*-
@@ -22,7 +22,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_urtwn.c,v 1.29 2014/02/16 16:13:37 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_urtwn.c,v 1.30 2014/05/08 05:59:09 mrg Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -411,6 +411,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");
+
        SET(sc->sc_flags, URTWN_FLAG_ATTACHED);
        return;
 



Home | Main Index | Thread Index | Old Index