diff options
author | imp <imp@FreeBSD.org> | 2007-06-09 06:42:19 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2007-06-09 06:42:19 +0000 |
commit | 6b57bca6dcae3f2de6ad019610dcce6e0e17313d (patch) | |
tree | 4e8b6057a86ece2adf5c83bcfaed14fd5ff4cce6 /sys/dev/usb/ukbd.c | |
parent | 851f4a6f5bf8e84a38c0dad78f57cb2521e37d86 (diff) | |
download | FreeBSD-src-6b57bca6dcae3f2de6ad019610dcce6e0e17313d.zip FreeBSD-src-6b57bca6dcae3f2de6ad019610dcce6e0e17313d.tar.gz |
Remove devinfo junk.
Remove bogus bzero/memset
Expand USB_ATTACH_SETUP
Minor nits
Diffstat (limited to 'sys/dev/usb/ukbd.c')
-rw-r--r-- | sys/dev/usb/ukbd.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/usb/ukbd.c b/sys/dev/usb/ukbd.c index e605a3c..7898c50 100644 --- a/sys/dev/usb/ukbd.c +++ b/sys/dev/usb/ukbd.c @@ -154,20 +154,18 @@ USB_ATTACH(ukbd) USB_ATTACH_START(ukbd, sc, uaa); usbd_interface_handle iface = uaa->iface; usb_interface_descriptor_t *id; - char devinfo[1024]; keyboard_switch_t *sw; keyboard_t *kbd; void *arg[2]; int unit = device_get_unit(self); + sc->sc_dev = self; sw = kbd_get_switch(DRIVER_NAME); if (sw == NULL) USB_ATTACH_ERROR_RETURN; id = usbd_get_interface_descriptor(iface); - usbd_devinfo(uaa->device, USBD_SHOW_INTERFACE_CLASS, devinfo); - USB_ATTACH_SETUP; arg[0] = (void *)uaa; arg[1] = (void *)ukbd_intr; |