diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-10-26 15:34:17 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-10-26 15:34:17 +0000 |
commit | 93e9b673291be422ecd3f7e018185c5363605e53 (patch) | |
tree | 1f1bd218069d92c11318570034c608f85c909ab6 /sys/dev/usb/uvideo.c | |
parent | 7ba3cb76e5fed474bad8d08233effb99e087f606 (diff) |
better test for if the parent is ohci; ok mglocker
Diffstat (limited to 'sys/dev/usb/uvideo.c')
-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 { |