spc(4): Use config_detach_children.

This commit is contained in:
riastradh 2023-05-10 00:10:54 +00:00
parent e45584157c
commit 98ee5866f3
1 changed files with 7 additions and 7 deletions

View File

@ -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;
}
/*