Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/hil hilms(4): Use config_detach_children.



details:   https://anonhg.NetBSD.org/src/rev/33cc2b769644
branches:  trunk
changeset: 374692:33cc2b769644
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed May 10 00:09:47 2023 +0000

description:
hilms(4): Use config_detach_children.

diffstat:

 sys/dev/hil/hilms.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (23 lines):

diff -r 27aae545d1f7 -r 33cc2b769644 sys/dev/hil/hilms.c
--- a/sys/dev/hil/hilms.c       Wed May 10 00:09:39 2023 +0000
+++ b/sys/dev/hil/hilms.c       Wed May 10 00:09:47 2023 +0000
@@ -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;
 }



Home | Main Index | Thread Index | Old Index