diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-10-11 18:33:16 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-10-11 18:33:16 +0000 |
commit | c8d027b7c2c9478cc6134a64ce7f4493c4f31d03 (patch) | |
tree | d059b171ccae4a9b91e72ce31662e4163fb1e943 /sys/dev/usb/umidi.c | |
parent | cb538c3cbe26e67bac2b85c75da7259a005d264e (diff) |
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/umidi.c')
-rw-r--r-- | sys/dev/usb/umidi.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/dev/usb/umidi.c b/sys/dev/usb/umidi.c index 7cb708d5ba7..b7ab82e5245 100644 --- a/sys/dev/usb/umidi.c +++ b/sys/dev/usb/umidi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: umidi.c,v 1.23 2007/10/06 23:50:55 krw Exp $ */ +/* $OpenBSD: umidi.c,v 1.24 2007/10/11 18:33:15 deraadt Exp $ */ /* $NetBSD: umidi.c,v 1.16 2002/07/11 21:14:32 augustss Exp $ */ /* * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -182,15 +182,10 @@ umidi_attach(struct device *parent, struct device *self, void *aux) usbd_status err; struct umidi_softc *sc = (struct umidi_softc *)self; struct usb_attach_arg *uaa = aux; - char *devinfop; int i; DPRINTFN(1,("umidi_attach\n")); - devinfop = usbd_devinfo_alloc(uaa->device, 0); - printf("\n%s: %s\n", sc->sc_dev.dv_xname, devinfop); - usbd_devinfo_free(devinfop); - sc->sc_iface = uaa->iface; sc->sc_udev = uaa->device; |