Module Name: src Committed By: riastradh Date: Wed May 10 00:09:54 UTC 2023
Modified Files: src/sys/dev/hpc: hpf1275a_tty.c Log Message: hpf1275a(4): Use config_detach_children. To generate a diff of this commit: cvs rdiff -u -r1.32 -r1.33 src/sys/dev/hpc/hpf1275a_tty.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/hpc/hpf1275a_tty.c diff -u src/sys/dev/hpc/hpf1275a_tty.c:1.32 src/sys/dev/hpc/hpf1275a_tty.c:1.33 --- src/sys/dev/hpc/hpf1275a_tty.c:1.32 Wed Oct 26 23:45:10 2022 +++ src/sys/dev/hpc/hpf1275a_tty.c Wed May 10 00:09:54 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: hpf1275a_tty.c,v 1.32 2022/10/26 23:45:10 riastradh Exp $ */ +/* $NetBSD: hpf1275a_tty.c,v 1.33 2023/05/10 00:09:54 riastradh Exp $ */ /* * Copyright (c) 2004 Valeriy E. Ushakov @@ -28,7 +28,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: hpf1275a_tty.c,v 1.32 2022/10/26 23:45:10 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: hpf1275a_tty.c,v 1.33 2023/05/10 00:09:54 riastradh Exp $"); #include "opt_wsdisplay_compat.h" @@ -284,12 +284,11 @@ hpf1275a_detach(device_t self, int flags struct hpf1275a_softc *sc = device_private(self); int error; - if (sc->sc_wskbd == NULL) - return (0); - - error = config_detach(sc->sc_wskbd, 0); + error = config_detach_children(self, flags); + if (error) + return error; - return (error); + return 0; }