Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb ualea(4): Null suspend/resume handler.



details:   https://anonhg.NetBSD.org/src/rev/ce494303f935
branches:  trunk
changeset: 1021373:ce494303f935
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sat May 29 08:45:19 2021 +0000

description:
ualea(4): Null suspend/resume handler.

diffstat:

 sys/dev/usb/ualea.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r aa92273611cb -r ce494303f935 sys/dev/usb/ualea.c
--- a/sys/dev/usb/ualea.c       Sat May 29 06:54:20 2021 +0000
+++ b/sys/dev/usb/ualea.c       Sat May 29 08:45:19 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ualea.c,v 1.12 2020/07/13 13:53:04 simonb Exp $        */
+/*     $NetBSD: ualea.c,v 1.13 2021/05/29 08:45:19 riastradh Exp $     */
 
 /*-
  * Copyright (c) 2017 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ualea.c,v 1.12 2020/07/13 13:53:04 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ualea.c,v 1.13 2021/05/29 08:45:19 riastradh Exp $");
 
 #include <sys/types.h>
 #include <sys/atomic.h>
@@ -139,6 +139,10 @@
                return;
        }
 
+       if (!pmf_device_register(self, NULL, NULL))
+               aprint_error_dev(sc->sc_dev, "failed to register power handler"
+                   "\n");
+
        /* Success!  We are ready to run.  */
        sc->sc_attached = true;
        rndsource_setcb(&sc->sc_rnd, ualea_get, sc);



Home | Main Index | Thread Index | Old Index