usb: inline device creation functions
commit726c60993689790b515b20603f3710b2b0418ee9
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 29 Jan 2024 13:05:29 +0000 (29 14:05 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 16 Feb 2024 12:56:09 +0000 (16 13:56 +0100)
treef841136ff8d1b147b2b741dec5a5a0ad00302acf
parent99d0dcd7f102c07a510200d768cae65e5db25d23
usb: inline device creation functions

Allow boards to use the device creation functions even if USB itself
is not available; of course the functions will fail inexorably, but
this can be okay if the calls are conditional on the existence of
some USB host controller device.  This is for example the case for
hw/mips/loongson3_virt.c.

Acked-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/usb/bus.c
include/hw/usb.h