aboutsummaryrefslogtreecommitdiff
path: root/hw/arm/nseries.c
diff options
context:
space:
mode:
authorEduardo Habkost <ehabkost@redhat.com>2016-06-08 17:50:25 -0300
committerGerd Hoffmann <kraxel@redhat.com>2016-06-13 13:24:41 +0200
commit4bcbe0b63661b1df8e78d58270574d818b387d2c (patch)
treed99ede42b1c14764f6bbe2b3c0ddb8664e847e63 /hw/arm/nseries.c
parentc92cfba822245c42fec611f310ed74c1821be3d2 (diff)
downloadqemu-4bcbe0b63661b1df8e78d58270574d818b387d2c.zip
qemu-4bcbe0b63661b1df8e78d58270574d818b387d2c.tar.gz
qemu-4bcbe0b63661b1df8e78d58270574d818b387d2c.tar.bz2
vl: Eliminate usb_enabled()
This wrapper for machine_usb(current_machine) is not necessary, replace all usages of usb_enabled() with machine_usb(). Cc: Peter Maydell <peter.maydell@linaro.org> Cc: "Michael S. Tsirkin" <mst@redhat.com> Cc: Alexander Graf <agraf@suse.de> Cc: qemu-arm@nongnu.org Cc: qemu-ppc@nongnu.org Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Reviewed-by: Marcel Apfelbaum <marcel@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-id: 1465419025-21519-3-git-send-email-ehabkost@redhat.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/arm/nseries.c')
-rw-r--r--hw/arm/nseries.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/arm/nseries.c b/hw/arm/nseries.c
index d4eb141..fea911e 100644
--- a/hw/arm/nseries.c
+++ b/hw/arm/nseries.c
@@ -1351,7 +1351,7 @@ static void n8x0_init(MachineState *machine,
n8x0_dss_setup(s);
n8x0_cbus_setup(s);
n8x0_uart_setup(s);
- if (usb_enabled()) {
+ if (machine_usb(machine)) {
n8x0_usb_setup(s);
}