hpf1275a(4): Use config_detach_children.

This commit is contained in:
riastradh 2023-05-10 00:09:54 +00:00
parent 52309fa76a
commit 561e6c8bfb
1 changed files with 6 additions and 7 deletions

View File

@ -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_children(self, flags);
if (error)
return error;
error = config_detach(sc->sc_wskbd, 0);
return (error);
return 0;
}