aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/mpt
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2008-07-01 19:44:38 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2008-07-01 19:44:38 +0000
commit0328507287bbab4f5516cf50044795235d3474ac (patch)
tree5073b1d5ced2409f639e1e4720b14f2f398fdcc0 /sys/dev/mpt
parent165b10b07ba5fc59ae46b4bc60d355b2430fa948 (diff)
downloadsrc-0328507287bbab4f5516cf50044795235d3474ac.tar.gz
src-0328507287bbab4f5516cf50044795235d3474ac.zip
During shutdown, deregister the shutdown hook from the correct event
handler. MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=180152
Diffstat (limited to 'sys/dev/mpt')
-rw-r--r--sys/dev/mpt/mpt_pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/mpt/mpt_pci.c b/sys/dev/mpt/mpt_pci.c
index be6cbd6b6b50..deb905ee37bb 100644
--- a/sys/dev/mpt/mpt_pci.c
+++ b/sys/dev/mpt/mpt_pci.c
@@ -688,7 +688,7 @@ mpt_pci_detach(device_t dev)
mpt_free_bus_resources(mpt);
mpt_raid_free_mem(mpt);
if (mpt->eh != NULL) {
- EVENTHANDLER_DEREGISTER(shutdown_final, mpt->eh);
+ EVENTHANDLER_DEREGISTER(shutdown_post_sync, mpt->eh);
}
}
return(0);