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 in ahci_pci_detach() the PMF hooks re...



details:   https://anonhg.NetBSD.org/src/rev/a5386c0fb495
branches:  trunk
changeset: 763766:a5386c0fb495
user:      dyoung <dyoung%NetBSD.org@localhost>
date:      Sun Apr 03 20:05:30 2011 +0000

description:
Deregister in ahci_pci_detach() the PMF hooks registered in
ahci_pci_attach().

diffstat:

 sys/dev/pci/ahcisata_pci.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r d2ca7fceb5a1 -r a5386c0fb495 sys/dev/pci/ahcisata_pci.c
--- a/sys/dev/pci/ahcisata_pci.c        Sun Apr 03 19:44:15 2011 +0000
+++ b/sys/dev/pci/ahcisata_pci.c        Sun Apr 03 20:05:30 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ahcisata_pci.c,v 1.23 2010/11/13 13:52:05 uebayasi Exp $       */
+/*     $NetBSD: ahcisata_pci.c,v 1.24 2011/04/03 20:05:30 dyoung Exp $ */
 
 /*
  * Copyright (c) 2006 Manuel Bouyer.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ahcisata_pci.c,v 1.23 2010/11/13 13:52:05 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ahcisata_pci.c,v 1.24 2011/04/03 20:05:30 dyoung Exp $");
 
 #include <sys/types.h>
 #include <sys/malloc.h>
@@ -241,6 +241,8 @@
        if ((rv = ahci_detach(sc, flags)))
                return rv;
 
+       pmf_device_deregister(dv);
+
        if (psc->sc_ih != NULL)
                pci_intr_disestablish(psc->sc_pc, psc->sc_ih);
 



Home | Main Index | Thread Index | Old Index