diff options
| author | riastradh <riastradh@NetBSD.org> | 2023-05-10 00:10:54 +0000 |
|---|---|---|
| committer | riastradh <riastradh@NetBSD.org> | 2023-05-10 00:10:54 +0000 |
| commit | d2960b3c88459fd67ac06e0044dfc0dbf877433c (patch) | |
| tree | 8c41d6bb71ae84f34d4e50e456c2d594f5e36b00 /sys/dev/ic | |
| parent | 4fe14bd66e936d1374d6e8adcc84295c9f6eac09 (diff) | |
spc(4): Use config_detach_children.
Diffstat (limited to 'sys/dev/ic')
| -rw-r--r-- | sys/dev/ic/mb89352.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/dev/ic/mb89352.c b/sys/dev/ic/mb89352.c index 8436d9c97fe..7667476a9c4 100644 --- a/sys/dev/ic/mb89352.c +++ b/sys/dev/ic/mb89352.c @@ -1,4 +1,4 @@ -/* $NetBSD: mb89352.c,v 1.62 2023/03/28 20:01:58 andvar Exp $ */ +/* $NetBSD: mb89352.c,v 1.63 2023/05/10 00:10:54 riastradh Exp $ */ /* NecBSD: mb89352.c,v 1.4 1998/03/14 07:31:20 kmatsuda Exp */ /*- @@ -77,7 +77,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: mb89352.c,v 1.62 2023/03/28 20:01:58 andvar Exp $"); +__KERNEL_RCSID(0, "$NetBSD: mb89352.c,v 1.63 2023/05/10 00:10:54 riastradh Exp $"); #ifdef DDB #define integrate @@ -321,13 +321,13 @@ spc_childdet(device_t self, device_t child) int spc_detach(device_t self, int flags) { - struct spc_softc *sc = device_private(self); - int rv = 0; + int error; - if (sc->sc_child != NULL) - rv = config_detach(sc->sc_child, flags); + error = config_detach_children(self, flags); + if (error) + return error; - return (rv); + return 0; } /* |
