[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 06/12] audio: deprecate -soundhw adlib
From: |
Gerd Hoffmann |
Subject: |
[PATCH 06/12] audio: deprecate -soundhw adlib |
Date: |
Wed, 29 Apr 2020 13:02:08 +0200 |
Switch to deprecated_register_soundhw().
Remove the now obsolete init function.
Signed-off-by: Gerd Hoffmann <address@hidden>
---
hw/audio/adlib.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/hw/audio/adlib.c b/hw/audio/adlib.c
index d6c1fb0586c6..f62fbd413169 100644
--- a/hw/audio/adlib.c
+++ b/hw/audio/adlib.c
@@ -322,16 +322,10 @@ static const TypeInfo adlib_info = {
.class_init = adlib_class_initfn,
};
-static int Adlib_init (ISABus *bus)
-{
- isa_create_simple (bus, TYPE_ADLIB);
- return 0;
-}
-
static void adlib_register_types (void)
{
type_register_static (&adlib_info);
- isa_register_soundhw("adlib", ADLIB_DESC, Adlib_init);
+ deprecated_register_soundhw("adlib", ADLIB_DESC, 1, TYPE_ADLIB);
}
type_init (adlib_register_types)
--
2.18.2
- [PATCH 09/12] audio: deprecate -soundhw sb16, (continued)
- [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, 2020/04/29
- [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 <=
- 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