From 93e9b673291be422ecd3f7e018185c5363605e53 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Mon, 26 Oct 2009 15:34:17 +0000 Subject: better test for if the parent is ohci; ok mglocker --- sys/dev/usb/uvideo.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/dev/usb/uvideo.c') diff --git a/sys/dev/usb/uvideo.c b/sys/dev/usb/uvideo.c index 2498527bb74..82cd8f062b0 100644 --- a/sys/dev/usb/uvideo.c +++ b/sys/dev/usb/uvideo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvideo.c,v 1.128 2009/10/13 19:33:19 pirofti Exp $ */ +/* $OpenBSD: uvideo.c,v 1.129 2009/10/26 15:34:16 deraadt Exp $ */ /* * Copyright (c) 2008 Robert Nagy @@ -1708,7 +1708,8 @@ uvideo_vs_open(struct uvideo_softc *sc) } /* calculate optimal isoc xfer size */ - if (strncmp(sc->sc_udev->bus->bdev.dv_xname, "ohci", 4) == 0) { + if (strcmp(sc->sc_udev->bus->bdev.dv_cfdata->cf_driver->cd_name, + "ohci") == 0) { /* ohci workaround */ sc->sc_nframes = 8; } else { -- cgit v1.2.3