diff --git a/sys/dev/sound/pci/hda/hdac.c b/sys/dev/sound/pci/hda/hdac.c --- a/sys/dev/sound/pci/hda/hdac.c +++ b/sys/dev/sound/pci/hda/hdac.c @@ -1743,8 +1743,7 @@ struct hdac_softc *sc = device_get_softc(dev); int i, error; - error = bus_generic_detach(dev); - if (error != 0) + if ((error = device_delete_children(dev)) != 0) return (error); hdac_lock(sc);