Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic spc(4): Use config_detach_children.
details: https://anonhg.NetBSD.org/src/rev/47e66a790dca
branches: trunk
changeset: 374696:47e66a790dca
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed May 10 00:10:54 2023 +0000
description:
spc(4): Use config_detach_children.
diffstat:
sys/dev/ic/mb89352.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diffs (37 lines):
diff -r de48119cb45c -r 47e66a790dca sys/dev/ic/mb89352.c
--- a/sys/dev/ic/mb89352.c Wed May 10 00:10:35 2023 +0000
+++ b/sys/dev/ic/mb89352.c Wed May 10 00:10:54 2023 +0000
@@ -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 chi
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;
}
/*
Home |
Main Index |
Thread Index |
Old Index