diff options
| author | Mike Smith <msmith@FreeBSD.org> | 1999-08-21 06:24:40 +0000 |
|---|---|---|
| committer | Mike Smith <msmith@FreeBSD.org> | 1999-08-21 06:24:40 +0000 |
| commit | fcb893a801d281f10818fb4c88ed31215283a94e (patch) | |
| tree | f4575d58021ad3c4d19c4d403050bb3dad3543da /sys/dev/dpt | |
| parent | 2a67fa4383b91146ae25b36cde91d05ffd7d5597 (diff) | |
Notes
Diffstat (limited to 'sys/dev/dpt')
| -rw-r--r-- | sys/dev/dpt/dpt_scsi.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/dev/dpt/dpt_scsi.c b/sys/dev/dpt/dpt_scsi.c index bb7362e4efe2..aae96a99ad24 100644 --- a/sys/dev/dpt/dpt_scsi.c +++ b/sys/dev/dpt/dpt_scsi.c @@ -43,7 +43,7 @@ * arrays that span controllers (Wow!). */ -#ident "$Id: dpt_scsi.c,v 1.23 1999/05/06 20:16:22 ken Exp $" +#ident "$Id: dpt_scsi.c,v 1.24 1999/08/16 01:49:35 gibbs Exp $" #define _DPT_C_ @@ -155,7 +155,7 @@ static void dptprocesserror(dpt_softc_t *dpt, dpt_ccb_t *dccb, u_int scsi_stat, u_int32_t resid); static void dpttimeout(void *arg); -static void dptshutdown(int howto, void *arg); +static void dptshutdown(void *arg, int howto); /* ================= Private Inline Function definitions ====================*/ static __inline int @@ -1407,7 +1407,8 @@ dpt_attach(dpt_softc_t *dpt) } if (i > 0) - at_shutdown(dptshutdown, dpt, SHUTDOWN_FINAL); + EVENTHANDLER_REGISTER(shutdown_final, dptshutdown, + dpt, SHUTDOWN_PRI_DEFAULT); return (i); } @@ -1639,10 +1640,10 @@ dpttimeout(void *arg) /* * Shutdown the controller and ensure that the cache is completely flushed. - * Called via at_shutdown(9) after all disk access has completed. + * Called from the shutdown_final event after all disk access has completed. */ static void -dptshutdown(int howto, void *arg) +dptshutdown(void *arg, int howto) { dpt_softc_t *dpt; |
