Module Name:    src
Committed By:   riastradh
Date:           Wed May 10 00:09:47 UTC 2023

Modified Files:
        src/sys/dev/hil: hilms.c

Log Message:
hilms(4): Use config_detach_children.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/dev/hil/hilms.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/hil/hilms.c
diff -u src/sys/dev/hil/hilms.c:1.5 src/sys/dev/hil/hilms.c:1.6
--- src/sys/dev/hil/hilms.c:1.5	Sun Sep 19 04:55:58 2021
+++ src/sys/dev/hil/hilms.c	Wed May 10 00:09:47 2023
@@ -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;
 }

Reply via email to