Module Name: src
Committed By: nonaka
Date: Sun Jul 5 08:14:46 UTC 2015
Modified Files:
src/sys/dev/pci: hdaudio_pci.c
Log Message:
Deregister pmf hook when attach failed.
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/dev/pci/hdaudio_pci.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/pci/hdaudio_pci.c
diff -u src/sys/dev/pci/hdaudio_pci.c:1.1 src/sys/dev/pci/hdaudio_pci.c:1.2
--- src/sys/dev/pci/hdaudio_pci.c:1.1 Sat Mar 28 14:09:59 2015
+++ src/sys/dev/pci/hdaudio_pci.c Sun Jul 5 08:14:46 2015
@@ -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 <[email protected]>
@@ -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 @@ hdaudio_pci_attach(device_t parent, devi
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);
}
}