diff options
author | 2009-10-26 15:34:16 +0000 | |
---|---|---|
committer | 2009-10-26 15:34:16 +0000 | |
commit | bf638fb5f5ba0489a79584bc94cecb8ccd91aa12 (patch) | |
tree | e762d64fb4c0101498dacebab343f9c867b58af3 | |
parent | On second thoughts, drop the rxvt output entirely. (diff) | |
download | wireguard-openbsd-bf638fb5f5ba0489a79584bc94cecb8ccd91aa12.tar.xz wireguard-openbsd-bf638fb5f5ba0489a79584bc94cecb8ccd91aa12.zip |
better test for if the parent is ohci; ok mglocker
-rw-r--r-- | sys/dev/usb/uvideo.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 <robert@openbsd.org> @@ -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 { |