usb: usb_create() is now unused, drop
Cc: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <20200610053247.1583243-29-armbru@redhat.com>
This commit is contained in:
parent
590ce74a08
commit
8cd81a9e55
@ -323,14 +323,6 @@ bool usb_realize_and_unref(USBDevice *dev, USBBus *bus, Error **errp)
|
|||||||
return qdev_realize_and_unref(&dev->qdev, &bus->qbus, errp);
|
return qdev_realize_and_unref(&dev->qdev, &bus->qbus, errp);
|
||||||
}
|
}
|
||||||
|
|
||||||
USBDevice *usb_create(USBBus *bus, const char *name)
|
|
||||||
{
|
|
||||||
DeviceState *dev;
|
|
||||||
|
|
||||||
dev = qdev_create(&bus->qbus, name);
|
|
||||||
return USB_DEVICE(dev);
|
|
||||||
}
|
|
||||||
|
|
||||||
static USBDevice *usb_try_create_simple(USBBus *bus, const char *name,
|
static USBDevice *usb_try_create_simple(USBBus *bus, const char *name,
|
||||||
Error **errp)
|
Error **errp)
|
||||||
{
|
{
|
||||||
|
@ -505,7 +505,6 @@ void usb_legacy_register(const char *typename, const char *usbdevice_name,
|
|||||||
USBDevice *(*usbdevice_init)(const char *params));
|
USBDevice *(*usbdevice_init)(const char *params));
|
||||||
USBDevice *usb_new(const char *name);
|
USBDevice *usb_new(const char *name);
|
||||||
bool usb_realize_and_unref(USBDevice *dev, USBBus *bus, Error **errp);
|
bool usb_realize_and_unref(USBDevice *dev, USBBus *bus, Error **errp);
|
||||||
USBDevice *usb_create(USBBus *bus, const char *name);
|
|
||||||
USBDevice *usb_create_simple(USBBus *bus, const char *name);
|
USBDevice *usb_create_simple(USBBus *bus, const char *name);
|
||||||
USBDevice *usbdevice_create(const char *cmdline);
|
USBDevice *usbdevice_create(const char *cmdline);
|
||||||
void usb_register_port(USBBus *bus, USBPort *port, void *opaque, int index,
|
void usb_register_port(USBBus *bus, USBPort *port, void *opaque, int index,
|
||||||
|
Loading…
Reference in New Issue
Block a user