diff options
author | 2007-10-11 18:33:13 +0000 | |
---|---|---|
committer | 2007-10-11 18:33:13 +0000 | |
commit | fc5c6ac59ce5cbc022c1e83b8d45d511803eefc6 (patch) | |
tree | f48ba3f4f889ca73be80167ebfdbf26cc87597d9 /sys/dev/usb/if_kue.c | |
parent | serialize usbd_probe_and_attach(); only let one usb device be match'd and (diff) | |
download | wireguard-openbsd-fc5c6ac59ce5cbc022c1e83b8d45d511803eefc6.tar.xz wireguard-openbsd-fc5c6ac59ce5cbc022c1e83b8d45d511803eefc6.zip |
treat usb vendor/product names as a locator, and have usbd_print handle it,
so that it shows up before the :. as a result, all the usb devices do not
need to have name printing code anymore. all this now works and prints
nicely because usbd_probe_and_attach() is serialized. ok kettenis
Diffstat (limited to 'sys/dev/usb/if_kue.c')
-rw-r--r-- | sys/dev/usb/if_kue.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/dev/usb/if_kue.c b/sys/dev/usb/if_kue.c index 2e34adab85b..99671a1bde0 100644 --- a/sys/dev/usb/if_kue.c +++ b/sys/dev/usb/if_kue.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_kue.c,v 1.55 2007/06/14 10:11:15 mbalmer Exp $ */ +/* $OpenBSD: if_kue.c,v 1.56 2007/10/11 18:33:14 deraadt Exp $ */ /* $NetBSD: if_kue.c,v 1.50 2002/07/16 22:00:31 augustss Exp $ */ /* * Copyright (c) 1997, 1998, 1999, 2000 @@ -524,16 +524,11 @@ kue_attach(struct device *parent, struct device *self, void *aux) { struct kue_softc *sc = (struct kue_softc *)self; struct usb_attach_arg *uaa = aux; - char *devinfop; usbd_device_handle dev = uaa->device; usbd_status err; DPRINTFN(5,(" : kue_attach: sc=%p, dev=%p", sc, dev)); - devinfop = usbd_devinfo_alloc(dev, 0); - printf("\n%s: %s\n", sc->kue_dev.dv_xname, devinfop); - usbd_devinfo_free(devinfop); - err = usbd_set_config_no(dev, KUE_CONFIG_NO, 1); if (err) { printf("%s: setting config no failed\n", |