[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 07/12] audio: deprecate -soundhw cs4231a
From: |
Gerd Hoffmann |
Subject: |
[PATCH 07/12] audio: deprecate -soundhw cs4231a |
Date: |
Wed, 29 Apr 2020 13:02:09 +0200 |
Switch to deprecated_register_soundhw().
Remove the now obsolete init function.
Signed-off-by: Gerd Hoffmann <address@hidden>
---
hw/audio/cs4231a.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/hw/audio/cs4231a.c b/hw/audio/cs4231a.c
index ffdbb58d6a11..59705a8d4701 100644
--- a/hw/audio/cs4231a.c
+++ b/hw/audio/cs4231a.c
@@ -683,12 +683,6 @@ static void cs4231a_realizefn (DeviceState *dev, Error
**errp)
AUD_register_card ("cs4231a", &s->card);
}
-static int cs4231a_init (ISABus *bus)
-{
- isa_create_simple (bus, TYPE_CS4231A);
- return 0;
-}
-
static Property cs4231a_properties[] = {
DEFINE_AUDIO_PROPERTIES(CSState, card),
DEFINE_PROP_UINT32 ("iobase", CSState, port, 0x534),
@@ -720,7 +714,7 @@ static const TypeInfo cs4231a_info = {
static void cs4231a_register_types (void)
{
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)
--
2.18.2
- [PATCH 00/12] audio: deprecate -soundhw, Gerd Hoffmann, 2020/04/29
- [PATCH 02/12] stubs: add pci_create_simple, Gerd Hoffmann, 2020/04/29
- [PATCH 04/12] audio: deprecate -soundhw ac97, Gerd Hoffmann, 2020/04/29
- [PATCH 09/12] audio: deprecate -soundhw sb16, Gerd Hoffmann, 2020/04/29
- [PATCH 05/12] audio: deprecate -soundhw es1370, Gerd Hoffmann, 2020/04/29
- [PATCH 07/12] audio: deprecate -soundhw cs4231a,
Gerd Hoffmann <=
- [PATCH 01/12] stubs: add isa_create_simple, Gerd Hoffmann, 2020/04/29
- [PATCH 12/12] [RFC] audio: try use onboard audiodev for pcspk, Gerd Hoffmann, 2020/04/29
- [PATCH 08/12] audio: deprecate -soundhw gus, Gerd Hoffmann, 2020/04/29
- [PATCH 10/12] audio: deprecate -soundhw hda, Gerd Hoffmann, 2020/04/29
- [PATCH 03/12] audio: add deprecated_register_soundhw, Gerd Hoffmann, 2020/04/29
- [PATCH 11/12] audio: deprecate -soundhw pcspk, Gerd Hoffmann, 2020/04/29
- [PATCH 06/12] audio: deprecate -soundhw adlib, Gerd Hoffmann, 2020/04/29
- Re: [PATCH 00/12] audio: deprecate -soundhw, Daniel P . Berrangé, 2020/04/29
- Re: [PATCH 00/12] audio: deprecate -soundhw, Philippe Mathieu-Daudé, 2020/04/29