diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-10-16 12:12:39 +0200 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-10-19 23:13:28 +0200 |
commit | 40f8214fcde40bab3ef6d1ab0b2353c7f8bc62aa (patch) | |
tree | 0a779fa08eccd417ca56f11b99741c4985179844 /include | |
parent | 6c9dcd8760092e455f86f6afb05d87ea827da8f3 (diff) | |
download | qemu-40f8214fcde40bab3ef6d1ab0b2353c7f8bc62aa.zip qemu-40f8214fcde40bab3ef6d1ab0b2353c7f8bc62aa.tar.gz qemu-40f8214fcde40bab3ef6d1ab0b2353c7f8bc62aa.tar.bz2 |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/hw/audio/pcspk.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/include/hw/audio/pcspk.h b/include/hw/audio/pcspk.h index 9506179..6be75a6 100644 --- a/include/hw/audio/pcspk.h +++ b/include/hw/audio/pcspk.h @@ -25,16 +25,6 @@ #ifndef HW_PCSPK_H #define HW_PCSPK_H -#include "hw/isa/isa.h" -#include "hw/qdev-properties.h" -#include "qapi/error.h" - #define TYPE_PC_SPEAKER "isa-pcspk" -static inline void pcspk_init(ISADevice *isadev, ISABus *bus, ISADevice *pit) -{ - object_property_set_link(OBJECT(isadev), "pit", OBJECT(pit), NULL); - isa_realize_and_unref(isadev, bus, &error_fatal); -} - #endif /* HW_PCSPK_H */ |