mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
hw/usb/ohci: Use OHCIState type definition
Forward-define the type first, then use it for the ohci_die() handler. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20230220150515.32549-3-philmd@linaro.org>
This commit is contained in:
parent
d9b934f21e
commit
4713720a78
2 changed files with 7 additions and 5 deletions
|
@ -1827,7 +1827,7 @@ static USBBusOps ohci_bus_ops = {
|
|||
void usb_ohci_init(OHCIState *ohci, DeviceState *dev, uint32_t num_ports,
|
||||
dma_addr_t localmem_base, char *masterbus,
|
||||
uint32_t firstport, AddressSpace *as,
|
||||
void (*ohci_die_fn)(struct OHCIState *), Error **errp)
|
||||
void (*ohci_die_fn)(OHCIState *), Error **errp)
|
||||
{
|
||||
Error *err = NULL;
|
||||
int i;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue