summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_sfreg.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/pci/if_sfreg.h')
-rw-r--r--sys/pci/if_sfreg.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/pci/if_sfreg.h b/sys/pci/if_sfreg.h
index c2dc20e..fd2107f 100644
--- a/sys/pci/if_sfreg.h
+++ b/sys/pci/if_sfreg.h
@@ -1048,8 +1048,8 @@ struct sf_softc {
};
-#define SF_LOCK(_sc) mtx_enter(&(_sc)->sf_mtx, MTX_DEF)
-#define SF_UNLOCK(_sc) mtx_exit(&(_sc)->sf_mtx, MTX_DEF)
+#define SF_LOCK(_sc) mtx_lock(&(_sc)->sf_mtx)
+#define SF_UNLOCK(_sc) mtx_unlock(&(_sc)->sf_mtx)
#define SF_TIMEOUT 1000
OpenPOWER on IntegriCloud