From 5b19d9a247c47fe52c4f3d3e844009a689ee6b28 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Mon, 31 Aug 2009 14:24:03 +0200 Subject: qdev/usb: convert ohci. Drop num_ports argument for usb_ohci_init_pci(), everybody calls it with num_ports == 3, so it is pointless. Convert ohci pci device into qdev. TODO: convert non-pci ohci adapters. You can add a OHCI USB Controller to your virtual pc now using '-device pci-ohci'. Specifying a id is a good idea, so you can attach usb devices to it, like this: -device pci-ohci,id=ohci -device usb-mouse,bus=ohci.0 Signed-off-by: Gerd Hoffmann Signed-off-by: Anthony Liguori --- hw/ppc_newworld.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/ppc_newworld.c') diff --git a/hw/ppc_newworld.c b/hw/ppc_newworld.c index 4951ea745c..9a491eb7c6 100644 --- a/hw/ppc_newworld.c +++ b/hw/ppc_newworld.c @@ -332,7 +332,7 @@ static void ppc_core99_init (ram_addr_t ram_size, escc_mem_index); if (usb_enabled) { - usb_ohci_init_pci(pci_bus, 3, -1); + usb_ohci_init_pci(pci_bus, -1); } if (graphic_depth != 15 && graphic_depth != 32 && graphic_depth != 8) -- cgit v1.2.1