Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci Deregister pmf hook when attach failed.



details:   https://anonhg.NetBSD.org/src/rev/19c56ed7f435
branches:  trunk
changeset: 809356:19c56ed7f435
user:      nonaka <nonaka%NetBSD.org@localhost>
date:      Sun Jul 05 08:14:46 2015 +0000

description:
Deregister pmf hook when attach failed.

diffstat:

 sys/dev/pci/hdaudio_pci.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r ed6d1515a8cc -r 19c56ed7f435 sys/dev/pci/hdaudio_pci.c
--- a/sys/dev/pci/hdaudio_pci.c Sun Jul 05 04:53:26 2015 +0000
+++ b/sys/dev/pci/hdaudio_pci.c Sun Jul 05 08:14:46 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hdaudio_pci.c,v 1.1 2015/03/28 14:09:59 jmcneill Exp $ */
+/* $NetBSD: hdaudio_pci.c,v 1.2 2015/07/05 08:14:46 nonaka Exp $ */
 
 /*
  * Copyright (c) 2009 Precedence Technologies Ltd <support%precedence.co.uk@localhost>
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hdaudio_pci.c,v 1.1 2015/03/28 14:09:59 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hdaudio_pci.c,v 1.2 2015/07/05 08:14:46 nonaka Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -173,6 +173,7 @@
                csr = pci_conf_read(sc->sc_pc, sc->sc_tag, PCI_COMMAND_STATUS_REG);
                csr &= ~(PCI_COMMAND_MASTER_ENABLE | PCI_COMMAND_BACKTOBACK_ENABLE);
                pci_conf_write(sc->sc_pc, sc->sc_tag, PCI_COMMAND_STATUS_REG, csr);
+               pmf_device_deregister(self);
        }
 }
 



Home | Main Index | Thread Index | Old Index