diff options
author | le <le@FreeBSD.org> | 2004-06-26 13:12:46 +0000 |
---|---|---|
committer | le <le@FreeBSD.org> | 2004-06-26 13:12:46 +0000 |
commit | 1537d9035f7d6618fa7ee2d20e95f15fa17994f0 (patch) | |
tree | 6df67a871df2a4c58d5f31dec69e6032ca4bc31a /sys | |
parent | c4efde2a38d19c5941a12bb133c6768e4fca385f (diff) | |
download | FreeBSD-src-1537d9035f7d6618fa7ee2d20e95f15fa17994f0.zip FreeBSD-src-1537d9035f7d6618fa7ee2d20e95f15fa17994f0.tar.gz |
Our softc has no sc_hdev, but a sc_dev. This in turn has no direct
sc_parent, so back out the previous commit, as it breaks the build.
If there's a pointy hat left, pass it on.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/usb/uhid.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/sys/dev/usb/uhid.c b/sys/dev/usb/uhid.c index 0a910b5..f19424b 100644 --- a/sys/dev/usb/uhid.c +++ b/sys/dev/usb/uhid.c @@ -2,8 +2,6 @@ /* Also already merged from NetBSD: * $NetBSD: uhid.c,v 1.54 2002/09/23 05:51:21 simonb Exp $ - * $NetBSD: uhid.c,v 1.61 2004/05/08 11:41:19 jdolecek Exp $ - * $NetBSD: uhid.c,v 1.62 2004/06/23 02:30:52 mycroft Exp $ */ #include <sys/cdefs.h> @@ -705,22 +703,6 @@ uhid_do_ioctl(struct uhid_softc *sc, u_long cmd, caddr_t addr, int flag, *(int *)addr = 0; /* XXX: we only support reportid 0? */ break; - case USB_GET_DEVICEINFO: - usbd_fill_deviceinfo(sc->sc_hdev.sc_parent->sc_udev, - (struct usb_device_info *)addr, 1); - break; - - case USB_GET_STRING_DESC: - { - struct usb_string_desc *si = (struct usb_string_desc *)addr; - err = usbd_get_string_desc(sc->sc_hdev.sc_parent->sc_udev, - si->usd_string_index, - si->usd_language_id, &si->usd_desc, &size); - if (err) - return (EINVAL); - break; - } - default: return (EINVAL); } |