Replace usbd_device_set_desc by device_set_desc_copy
This commit is contained in:
parent
87df68dfcd
commit
92b7206e3f
@ -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