diff options
| author | riastradh <riastradh@NetBSD.org> | 2023-05-10 00:09:47 +0000 |
|---|---|---|
| committer | riastradh <riastradh@NetBSD.org> | 2023-05-10 00:09:47 +0000 |
| commit | 42f45c89f8c92eba8d18cdcbd331c7ada4ca8e90 (patch) | |
| tree | 5c10909a8fd810e659f94e114bf2cec606169d75 /sys/dev | |
| parent | b7cd55f3e0b6496e77216b52a1e1348b6cac6b3e (diff) | |
hilms(4): Use config_detach_children.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/hil/hilms.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/dev/hil/hilms.c b/sys/dev/hil/hilms.c index 23073f60213..7a9e11832ff 100644 --- a/sys/dev/hil/hilms.c +++ b/sys/dev/hil/hilms.c @@ -1,4 +1,4 @@ -/* $NetBSD: hilms.c,v 1.5 2021/09/19 04:55:58 tsutsui Exp $ */ +/* $NetBSD: hilms.c,v 1.6 2023/05/10 00:09:47 riastradh Exp $ */ /* $OpenBSD: hilms.c,v 1.5 2007/04/10 22:37:17 miod Exp $ */ /* * Copyright (c) 2003, Miodrag Vallat. @@ -168,9 +168,11 @@ int hilmsdetach(device_t self, int flags) { struct hilms_softc *sc = device_private(self); + int error; - if (sc->sc_wsmousedev != NULL) - return config_detach(sc->sc_wsmousedev, flags); + error = config_detach_children(self, flags); + if (error) + return error; return 0; } |
