change some commented-out code to use the interrupt descriptor's polling

interval instead of an own (which isn't even defined)
This commit is contained in:
drochner 2006-12-01 20:56:42 +00:00
parent d395a37b84
commit af0d6b7f5e
2 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_udav.c,v 1.14 2006/11/16 01:33:26 christos Exp $ */
/* $NetBSD: if_udav.c,v 1.15 2006/12/01 20:56:42 drochner Exp $ */
/* $nabe: if_udav.c,v 1.3 2003/08/21 16:57:19 nabe Exp $ */
/*
* Copyright (c) 2003
@ -44,7 +44,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_udav.c,v 1.14 2006/11/16 01:33:26 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_udav.c,v 1.15 2006/12/01 20:56:42 drochner Exp $");
#include "opt_inet.h"
#include "bpfilter.h"
@ -837,7 +837,7 @@ udav_openpipes(struct udav_softc *sc)
err = usbd_open_pipe_intr(sc->sc_ctl_iface, sc->sc_intrin_no,
USBD_EXCLUSIVE_USE, &sc->sc_pipe_intr, sc,
&sc->sc_cdata.udav_ibuf, UDAV_INTR_PKGLEN,
udav_intr, UDAV_INTR_INTERVAL);
udav_intr, USBD_DEFAULT_INTERVAL);
if (err) {
printf("%s: open intr pipe failed: %s\n",
USBDEVNAME(sc->sc_dev), usbd_errstr(err));

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_url.c,v 1.23 2006/11/16 01:33:26 christos Exp $ */
/* $NetBSD: if_url.c,v 1.24 2006/12/01 20:56:42 drochner Exp $ */
/*
* Copyright (c) 2001, 2002
* Shingo WATANABE <nabe@nabechan.org>. All rights reserved.
@ -43,7 +43,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_url.c,v 1.23 2006/11/16 01:33:26 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_url.c,v 1.24 2006/12/01 20:56:42 drochner Exp $");
#include "opt_inet.h"
#include "bpfilter.h"
@ -729,7 +729,7 @@ url_openpipes(struct url_softc *sc)
err = usbd_open_pipe_intr(sc->sc_ctl_iface, sc->sc_intrin_no,
USBD_EXCLUSIVE_USE, &sc->sc_pipe_intr, sc,
&sc->sc_cdata.url_ibuf, URL_INTR_PKGLEN,
url_intr, URL_INTR_INTERVAL);
url_intr, USBD_DEFAULT_INTERVAL);
if (err) {
printf("%s: open intr pipe failed: %s\n",
USBDEVNAME(sc->sc_dev), usbd_errstr(err));