Replace usbd_device_set_desc by device_set_desc_copy
This commit is contained in:
parent
c049aba8c3
commit
178e4460ef
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=48270
@ -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 = \
|
||||
|
@ -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 *
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user