summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb
diff options
context:
space:
mode:
authorn_hibma <n_hibma@FreeBSD.org>1999-06-27 09:42:40 +0000
committern_hibma <n_hibma@FreeBSD.org>1999-06-27 09:42:40 +0000
commit92b7206e3f571e0cd26f3264a0f58d55d22c7930 (patch)
tree50b183bc9093f6a0c800b43af66aca1b3013cc35 /sys/dev/usb
parent87df68dfcdb0a70706b226032245a525196e2a34 (diff)
downloadFreeBSD-src-92b7206e3f571e0cd26f3264a0f58d55d22c7930.zip
FreeBSD-src-92b7206e3f571e0cd26f3264a0f58d55d22c7930.tar.gz
Replace usbd_device_set_desc by device_set_desc_copy
Diffstat (limited to 'sys/dev/usb')
-rw-r--r--sys/dev/usb/usb_port.h2
-rw-r--r--sys/dev/usb/usbdi.c8
-rw-r--r--sys/dev/usb/usbdi.h1
3 files changed, 1 insertions, 10 deletions
diff --git a/sys/dev/usb/usb_port.h b/sys/dev/usb/usb_port.h
index 4c420a0..b29be6b 100644
--- a/sys/dev/usb/usb_port.h
+++ b/sys/dev/usb/usb_port.h
@@ -184,7 +184,7 @@ __CONCAT(dname,_attach)(device_t self)
#define USB_ATTACH_SETUP \
sc->sc_dev = self; \
- usbd_device_set_desc(self, devinfo)
+ device_set_desc_copy(self, devinfo);
#define USB_GET_SC_OPEN(dname, unit, sc) \
struct __CONCAT(dname,_softc) *sc = \
diff --git a/sys/dev/usb/usbdi.c b/sys/dev/usb/usbdi.c
index c827f2f..b148d89 100644
--- a/sys/dev/usb/usbdi.c
+++ b/sys/dev/usb/usbdi.c
@@ -1304,14 +1304,6 @@ usbd_driver_load(module_t mod, int what, void *arg)
return 0; /* nothing to do */
#endif
}
-
-/* Set the description of the device including a malloc and copy. */
-void
-usbd_device_set_desc(device_t device, char *devinfo)
-{
- device_set_desc_copy(device, devinfo);
-}
-
#endif
char *
diff --git a/sys/dev/usb/usbdi.h b/sys/dev/usb/usbdi.h
index bcf36d5..b8f63f8 100644
--- a/sys/dev/usb/usbdi.h
+++ b/sys/dev/usb/usbdi.h
@@ -320,7 +320,6 @@ usb_endpoint_descriptor_t *usbd_get_endpoint_descriptor
#if defined(__FreeBSD__)
int usbd_driver_load __P((module_t mod, int what, void *arg));
-void usbd_device_set_desc __P((device_t device, char *devinfo));
bus_print_child_t usbd_print_child;
#endif
OpenPOWER on IntegriCloud