From 178e4460ef63090466986e881e23f81811d3f6ef Mon Sep 17 00:00:00 2001 From: Nick Hibma Date: Sun, 27 Jun 1999 09:42:40 +0000 Subject: [PATCH] Replace usbd_device_set_desc by device_set_desc_copy --- sys/dev/usb/usb_port.h | 2 +- sys/dev/usb/usbdi.c | 8 -------- sys/dev/usb/usbdi.h | 1 - 3 files changed, 1 insertion(+), 10 deletions(-) diff --git a/sys/dev/usb/usb_port.h b/sys/dev/usb/usb_port.h index 4c420a08d988..b29be6b644bd 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 c827f2f8fa5b..b148d894fa0d 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 bcf36d5ba9c2..b8f63f88e902 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