mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-09-02 15:02:02 -06:00
audio: deprecate -soundhw cs4231a
Switch to deprecated_register_soundhw(). Remove the now obsolete init function. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-id: 20200702132525.6849-8-kraxel@redhat.com
This commit is contained in:
parent
86388a3bfc
commit
6497a63679
1 changed files with 1 additions and 7 deletions
|
@ -683,12 +683,6 @@ static void cs4231a_realizefn (DeviceState *dev, Error **errp)
|
||||||
AUD_register_card ("cs4231a", &s->card);
|
AUD_register_card ("cs4231a", &s->card);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int cs4231a_init (ISABus *bus)
|
|
||||||
{
|
|
||||||
isa_create_simple (bus, TYPE_CS4231A);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static Property cs4231a_properties[] = {
|
static Property cs4231a_properties[] = {
|
||||||
DEFINE_AUDIO_PROPERTIES(CSState, card),
|
DEFINE_AUDIO_PROPERTIES(CSState, card),
|
||||||
DEFINE_PROP_UINT32 ("iobase", CSState, port, 0x534),
|
DEFINE_PROP_UINT32 ("iobase", CSState, port, 0x534),
|
||||||
|
@ -720,7 +714,7 @@ static const TypeInfo cs4231a_info = {
|
||||||
static void cs4231a_register_types (void)
|
static void cs4231a_register_types (void)
|
||||||
{
|
{
|
||||||
type_register_static (&cs4231a_info);
|
type_register_static (&cs4231a_info);
|
||||||
isa_register_soundhw("cs4231a", "CS4231A", cs4231a_init);
|
deprecated_register_soundhw("cs4231a", "CS4231A", 1, TYPE_CS4231A);
|
||||||
}
|
}
|
||||||
|
|
||||||
type_init (cs4231a_register_types)
|
type_init (cs4231a_register_types)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue