summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2013-02-21 12:40:52 +0000
committerglebius <glebius@FreeBSD.org>2013-02-21 12:40:52 +0000
commitf1e15e1fbc158dee561d179457addb8d03c1cd96 (patch)
tree6adf4e419e26880de252c248451cc9e07a6f17e9
parentea3da6a7c3882c59277696551b299ef7dff8b1b3 (diff)
downloadFreeBSD-src-f1e15e1fbc158dee561d179457addb8d03c1cd96.zip
FreeBSD-src-f1e15e1fbc158dee561d179457addb8d03c1cd96.tar.gz
Fix build.
-rw-r--r--sys/dev/ppc/ppc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ppc/ppc.c b/sys/dev/ppc/ppc.c
index 6c59e02..e1edc4d 100644
--- a/sys/dev/ppc/ppc.c
+++ b/sys/dev/ppc/ppc.c
@@ -75,7 +75,7 @@ static void ppcintr(void *arg);
#define DEVTOSOFTC(dev) ((struct ppc_data *)device_get_softc(dev))
/*
- * We use critical enter/leave for the simple config locking needed to
+ * We use critical enter/exit for the simple config locking needed to
* detect the devices. We just want to make sure that both of our writes
* happen without someone else also writing to those config registers. Since
* we just do this at startup, Giant keeps multiple threads from executing,
@@ -88,7 +88,7 @@ static void ppcintr(void *arg);
* and no other code changes these registers.
*/
#define PPC_CONFIG_LOCK(ppc) critical_enter()
-#define PPC_CONFIG_UNLOCK(ppc) critical_leave()
+#define PPC_CONFIG_UNLOCK(ppc) critical_exit()
devclass_t ppc_devclass;
const char ppc_driver_name[] = "ppc";
OpenPOWER on IntegriCloud