summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2015-03-19 10:39:18 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2015-03-19 10:39:18 +0000
commit82bce38cdef7f9711fada3f84568dc72166cf25d (patch)
treed1def4fba8f34a787c858b24f6b22874a2ab9d2a /sys/dev
parent8444b0cadab4fdb7af80707b92e82a2df183d82f (diff)
Let it compile.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/usb/dwc2/dwc2.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/usb/dwc2/dwc2.c b/sys/dev/usb/dwc2/dwc2.c
index 5696789b5c7..3cb30e2d902 100644
--- a/sys/dev/usb/dwc2/dwc2.c
+++ b/sys/dev/usb/dwc2/dwc2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dwc2.c,v 1.24 2015/03/19 10:31:29 mpi Exp $ */
+/* $OpenBSD: dwc2.c,v 1.25 2015/03/19 10:39:17 mpi Exp $ */
/* $NetBSD: dwc2.c,v 1.32 2014/09/02 23:26:20 macallan Exp $ */
/*-
@@ -1029,7 +1029,7 @@ dwc2_device_ctrl_start(struct usbd_xfer *xfer)
STATIC void
dwc2_device_ctrl_abort(struct usbd_xfer *xfer)
{
-#ifdef DWC2_DEBUG
+#ifdef DIAGNOSTIC
struct dwc2_softc *sc = DWC2_XFER2SC(xfer);
#endif
KASSERT(mtx_owned(&sc->sc_lock));
@@ -1092,7 +1092,7 @@ dwc2_device_bulk_start(struct usbd_xfer *xfer)
STATIC void
dwc2_device_bulk_abort(struct usbd_xfer *xfer)
{
-#ifdef DWC2_DEBUG
+#ifdef DIAGNOSTIC
struct dwc2_softc *sc = DWC2_XFER2SC(xfer);
#endif
KASSERT(mtx_owned(&sc->sc_lock));
@@ -1163,7 +1163,7 @@ dwc2_device_intr_start(struct usbd_xfer *xfer)
STATIC void
dwc2_device_intr_abort(struct usbd_xfer *xfer)
{
-#ifdef DWC2_DEBUG
+#ifdef DIAGNOSTIC
struct dwc2_softc *sc = DWC2_XFER2SC(xfer);
#endif
@@ -1238,7 +1238,7 @@ dwc2_device_isoc_start(struct usbd_xfer *xfer)
void
dwc2_device_isoc_abort(struct usbd_xfer *xfer)
{
-#ifdef DWC2_DEBUG
+#ifdef DIAGNOSTIC
struct dwc2_softc *sc = DWC2_XFER2SC(xfer);
#endif
KASSERT(mtx_owned(&sc->sc_lock));