diff options
author | jhb <jhb@FreeBSD.org> | 2008-07-01 19:44:38 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2008-07-01 19:44:38 +0000 |
commit | cc48263f2f5e2531b95754472c5409dfa3d34421 (patch) | |
tree | 5073b1d5ced2409f639e1e4720b14f2f398fdcc0 /sys/dev | |
parent | ef261a0536bab099cbfb430d8d8a55eeaa49fcbc (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/dev/mpt/mpt_pci.c | 2 |
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); |