Module Name: src Committed By: dyoung Date: Sun Apr 3 20:05:30 UTC 2011
Modified Files: src/sys/dev/pci: ahcisata_pci.c Log Message: Deregister in ahci_pci_detach() the PMF hooks registered in ahci_pci_attach(). To generate a diff of this commit: cvs rdiff -u -r1.23 -r1.24 src/sys/dev/pci/ahcisata_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/ahcisata_pci.c diff -u src/sys/dev/pci/ahcisata_pci.c:1.23 src/sys/dev/pci/ahcisata_pci.c:1.24 --- src/sys/dev/pci/ahcisata_pci.c:1.23 Sat Nov 13 13:52:05 2010 +++ src/sys/dev/pci/ahcisata_pci.c Sun Apr 3 20:05:30 2011 @@ -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);