summaryrefslogtreecommitdiffstats
path: root/sys/dev/mpt
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2008-07-01 19:44:38 +0000
committerjhb <jhb@FreeBSD.org>2008-07-01 19:44:38 +0000
commitcc48263f2f5e2531b95754472c5409dfa3d34421 (patch)
tree5073b1d5ced2409f639e1e4720b14f2f398fdcc0 /sys/dev/mpt
parentef261a0536bab099cbfb430d8d8a55eeaa49fcbc (diff)
downloadFreeBSD-src-cc48263f2f5e2531b95754472c5409dfa3d34421.zip
FreeBSD-src-cc48263f2f5e2531b95754472c5409dfa3d34421.tar.gz
During shutdown, deregister the shutdown hook from the correct event
handler. MFC after: 2 weeks
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 be6cbd6..deb905e 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);
OpenPOWER on IntegriCloud