Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb Fix build



details:   https://anonhg.NetBSD.org/src/rev/7a7391d8946d
branches:  trunk
changeset: 744873:7a7391d8946d
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Feb 15 07:46:48 2020 +0000

description:
Fix build

diffstat:

 sys/dev/usb/motg.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (35 lines):

diff -r 5cbce493b2bb -r 7a7391d8946d sys/dev/usb/motg.c
--- a/sys/dev/usb/motg.c        Sat Feb 15 07:20:40 2020 +0000
+++ b/sys/dev/usb/motg.c        Sat Feb 15 07:46:48 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: motg.c,v 1.27 2020/02/15 01:21:56 riastradh Exp $      */
+/*     $NetBSD: motg.c,v 1.28 2020/02/15 07:46:48 skrll Exp $  */
 
 /*
  * Copyright (c) 1998, 2004, 2011, 2012, 2014 The NetBSD Foundation, Inc.
@@ -40,7 +40,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: motg.c,v 1.27 2020/02/15 01:21:56 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: motg.c,v 1.28 2020/02/15 07:46:48 skrll Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -1031,6 +1031,7 @@
 {
        struct usbd_pipe *pipe = xfer->ux_pipe;
        struct motg_softc *sc = MOTG_PIPE2SC(pipe);
+       const bool polling = sc->sc_bus.ub_usepolling;
 
        MOTGHIST_FUNC(); MOTGHIST_CALLED();
 
@@ -1070,7 +1071,7 @@
 void
 motg_root_intr_done(struct usbd_xfer *xfer)
 {
-       struct motg_softc *sc = MOTG_PIPE2SC(pipe);
+       struct motg_softc *sc = MOTG_XFER2SC(xfer);
        MOTGHIST_FUNC(); MOTGHIST_CALLED();
 
        KASSERT(mutex_owned(&sc->sc_lock));



Home | Main Index | Thread Index | Old Index