diff options
| author | riastradh <riastradh@NetBSD.org> | 2021-05-29 08:45:19 +0000 |
|---|---|---|
| committer | riastradh <riastradh@NetBSD.org> | 2021-05-29 08:45:19 +0000 |
| commit | 8cf19cf8f4eb5ddef3142f763f498655b2a03be9 (patch) | |
| tree | 546df529f3423e9743ea4176be373466d4efb5e1 /sys/dev/usb | |
| parent | 5feb3a90347009312fce428e4751421347481ab5 (diff) | |
ualea(4): Null suspend/resume handler.
Diffstat (limited to 'sys/dev/usb')
| -rw-r--r-- | sys/dev/usb/ualea.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/usb/ualea.c b/sys/dev/usb/ualea.c index cf043564f89..ede886968af 100644 --- a/sys/dev/usb/ualea.c +++ b/sys/dev/usb/ualea.c @@ -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 @@ ualea_attach(device_t parent, device_t self, void *aux) 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); |
