Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Compile fix
details: https://anonhg.NetBSD.org/src/rev/c2e597570e55
branches: trunk
changeset: 784136:c2e597570e55
user: skrll <skrll%NetBSD.org@localhost>
date: Sat Jan 19 14:26:51 2013 +0000
description:
Compile fix
diffstat:
sys/dev/usb/dwc_otg.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (32 lines):
diff -r d9af4ed67f3c -r c2e597570e55 sys/dev/usb/dwc_otg.c
--- a/sys/dev/usb/dwc_otg.c Sat Jan 19 14:10:14 2013 +0000
+++ b/sys/dev/usb/dwc_otg.c Sat Jan 19 14:26:51 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dwc_otg.c,v 1.26 2013/01/19 14:07:37 skrll Exp $ */
+/* $NetBSD: dwc_otg.c,v 1.27 2013/01/19 14:26:51 skrll Exp $ */
/*-
* Copyright (c) 2012 Hans Petter Selasky. All rights reserved.
@@ -60,7 +60,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dwc_otg.c,v 1.26 2013/01/19 14:07:37 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dwc_otg.c,v 1.27 2013/01/19 14:26:51 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -3389,11 +3389,13 @@
status = DWC_OTG_READ_4(sc, DOTG_GINTSTS);
DWC_OTG_WRITE_4(sc, DOTG_GINTSTS, status);
+#ifdef DOTG_COUNTERS
for (size_t i = DWC_OTG_INTRBITF; i < DWC_OTG_NINTRBITS; i++) {
if (status & (1 << i)) {
DOTG_EVCNT_INCR(sc->sc_ev_intr_bit[i]);
}
}
+#endif
KASSERT(mutex_owned(&sc->sc_intr_lock));
if (status & GINTSTS_USBRST) {
Home |
Main Index |
Thread Index |
Old Index