diff options
| author | Scott Long <scottl@FreeBSD.org> | 2017-09-10 07:10:40 +0000 |
|---|---|---|
| committer | Scott Long <scottl@FreeBSD.org> | 2017-09-10 07:10:40 +0000 |
| commit | a4bb51a4a28746c5f59dbf8c193b133c7bfa69af (patch) | |
| tree | 295e314a16df5403e0527f988ccb5016d8b75b50 /sys/dev/mpr | |
| parent | 1415db6ca214c2d14ab73a552d8d3509691f8231 (diff) | |
Notes
Diffstat (limited to 'sys/dev/mpr')
| -rw-r--r-- | sys/dev/mpr/mpr.c | 5 | ||||
| -rw-r--r-- | sys/dev/mpr/mpr_sas.c | 6 |
2 files changed, 5 insertions, 6 deletions
diff --git a/sys/dev/mpr/mpr.c b/sys/dev/mpr/mpr.c index 0d83b4a2becd..b34630d955ba 100644 --- a/sys/dev/mpr/mpr.c +++ b/sys/dev/mpr/mpr.c @@ -1816,6 +1816,11 @@ mpr_startup(void *arg) mpr_mapping_initialize(sc); mprsas_startup(sc); mpr_unlock(sc); + + mpr_dprint(sc, MPR_INIT, "disestablish config intrhook\n"); + config_intrhook_disestablish(&sc->mpr_ich); + sc->mpr_ich.ich_arg = NULL; + mpr_dprint(sc, MPR_INIT, "%s exit\n", __func__); } diff --git a/sys/dev/mpr/mpr_sas.c b/sys/dev/mpr/mpr_sas.c index 8b4d2915c411..c646eb1743d2 100644 --- a/sys/dev/mpr/mpr_sas.c +++ b/sys/dev/mpr/mpr_sas.c @@ -3829,12 +3829,6 @@ mprsas_portenable_complete(struct mpr_softc *sc, struct mpr_command *cm) mpr_dprint(sc, MPR_FAULT, "Portenable failed\n"); mpr_free_command(sc, cm); - if (sc->mpr_ich.ich_arg != NULL) { - mpr_dprint(sc, MPR_XINFO, "disestablish config intrhook\n"); - config_intrhook_disestablish(&sc->mpr_ich); - sc->mpr_ich.ich_arg = NULL; - } - /* * Done waiting for port enable to complete. Decrement the refcount. * If refcount is 0, discovery is complete and a rescan of the bus can |
