Skip to content

Commit 4b96159

Browse files
committed
audio: deprecate -soundhw sb16
Switch to deprecated_register_soundhw(). Remove the now obsolete init function. Signed-off-by: Gerd Hoffmann <[email protected]> Message-id: [email protected]
1 parent ba54117 commit 4b96159

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

hw/audio/sb16.c

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1415,12 +1415,6 @@ static void sb16_realizefn (DeviceState *dev, Error **errp)
14151415
AUD_register_card ("sb16", &s->card);
14161416
}
14171417

1418-
static int SB16_init (ISABus *bus)
1419-
{
1420-
isa_create_simple (bus, TYPE_SB16);
1421-
return 0;
1422-
}
1423-
14241418
static Property sb16_properties[] = {
14251419
DEFINE_AUDIO_PROPERTIES(SB16State, card),
14261420
DEFINE_PROP_UINT32 ("version", SB16State, ver, 0x0405), /* 4.5 */
@@ -1453,7 +1447,8 @@ static const TypeInfo sb16_info = {
14531447
static void sb16_register_types (void)
14541448
{
14551449
type_register_static (&sb16_info);
1456-
isa_register_soundhw("sb16", "Creative Sound Blaster 16", SB16_init);
1450+
deprecated_register_soundhw("sb16", "Creative Sound Blaster 16",
1451+
1, TYPE_SB16);
14571452
}
14581453

14591454
type_init (sb16_register_types)

0 commit comments

Comments
 (0)