mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 18:44:58 -06:00
hw/audio/pcspk: Inline pcspk_init()
pcspk_init() is a legacy init function, inline and remove it. Since the device is realized using &error_fatal, use the same error for setting the "pit" link. Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-Id: <20231019073307.99608-1-philmd@linaro.org>
This commit is contained in:
parent
6c9dcd8760
commit
40f8214fcd
4 changed files with 11 additions and 13 deletions
|
@ -1283,7 +1283,9 @@ void pc_basic_device_init(struct PCMachineState *pcms,
|
|||
/* connect PIT to output control line of the HPET */
|
||||
qdev_connect_gpio_out(hpet, 0, qdev_get_gpio_in(DEVICE(pit), 0));
|
||||
}
|
||||
pcspk_init(pcms->pcspk, isa_bus, pit);
|
||||
object_property_set_link(OBJECT(pcms->pcspk), "pit",
|
||||
OBJECT(pit), &error_fatal);
|
||||
isa_realize_and_unref(pcms->pcspk, isa_bus, &error_fatal);
|
||||
}
|
||||
|
||||
/* Super I/O */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue