diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2024-02-23 13:44:01 +0100 |
|---|---|---|
| committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-02-27 09:37:13 +0100 |
| commit | 82523f4add2c41847c9799585581c113a11071ee (patch) | |
| tree | 99033c749f91d80f9846a3dc080a1597889bdd07 /include/hw/usb.h | |
| parent | b98948a902a1c7f28d18d363601e3f5fc7622424 (diff) | |
| download | focaccia-qemu-82523f4add2c41847c9799585581c113a11071ee.tar.gz focaccia-qemu-82523f4add2c41847c9799585581c113a11071ee.zip | |
hw/hppa: do not require CONFIG_USB
With --without-default-devices it is possible to build a binary that does not include any USB host controller and therefore that does not include the code guarded by CONFIG_USB. While the simpler creation functions such as usb_create_simple can be inlined, this is not true of usb_bus_find(). Remove it, replacing it with a search of the single USB bus on the machine. Suggested-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-ID: <20240223124406.234509-6-pbonzini@redhat.com> [PMD: Fixed style] Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Diffstat (limited to 'include/hw/usb.h')
0 files changed, 0 insertions, 0 deletions