Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci/hdaudio detach childern too
details: https://anonhg.NetBSD.org/src/rev/4045f63440c0
branches: trunk
changeset: 768272:4045f63440c0
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Sat Aug 13 16:08:23 2011 +0000
description:
detach childern too
diffstat:
sys/dev/pci/hdaudio/hdaudio.c | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diffs (36 lines):
diff -r 3abe037a0576 -r 4045f63440c0 sys/dev/pci/hdaudio/hdaudio.c
--- a/sys/dev/pci/hdaudio/hdaudio.c Sat Aug 13 16:04:09 2011 +0000
+++ b/sys/dev/pci/hdaudio/hdaudio.c Sat Aug 13 16:08:23 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hdaudio.c,v 1.12 2011/07/09 16:01:31 riastradh Exp $ */
+/* $NetBSD: hdaudio.c,v 1.13 2011/08/13 16:08:23 jakllsch Exp $ */
/*
* Copyright (c) 2009 Precedence Technologies Ltd <support%precedence.co.uk@localhost>
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hdaudio.c,v 1.12 2011/07/09 16:01:31 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hdaudio.c,v 1.13 2011/08/13 16:08:23 jakllsch Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -866,9 +866,17 @@
int
hdaudio_detach(struct hdaudio_softc *sc, int flags)
{
+ int error;
+
/* Disable interrupts */
hdaudio_intr_disable(sc);
+ error = config_detach_children(sc->sc_dev, flags);
+ if (error != 0) {
+ hdaudio_intr_enable(sc);
+ return error;
+ }
+
mutex_destroy(&sc->sc_corb_mtx);
mutex_destroy(&sc->sc_stream_mtx);
Home |
Main Index |
Thread Index |
Old Index