Module Name: src
Committed By: skrll
Date: Sat Feb 15 07:46:48 UTC 2020
Modified Files:
src/sys/dev/usb: motg.c
Log Message:
Fix build
To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/dev/usb/motg.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/usb/motg.c
diff -u src/sys/dev/usb/motg.c:1.27 src/sys/dev/usb/motg.c:1.28
--- src/sys/dev/usb/motg.c:1.27 Sat Feb 15 01:21:56 2020
+++ src/sys/dev/usb/motg.c Sat Feb 15 07:46:48 2020
@@ -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 @@ motg_root_intr_start(struct usbd_xfer *x
{
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 @@ motg_root_intr_close(struct usbd_pipe *p
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));