diff options
Diffstat (limited to 'hw/audio/intel-hda.c')
-rw-r--r-- | hw/audio/intel-hda.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/hw/audio/intel-hda.c b/hw/audio/intel-hda.c index 3d8077ac0d..1016af0204 100644 --- a/hw/audio/intel-hda.c +++ b/hw/audio/intel-hda.c @@ -1300,21 +1300,11 @@ static const TypeInfo hda_codec_device_type_info = { .class_init = hda_codec_device_class_init, }; -static void intel_hda_register_types(void) -{ - type_register_static(&hda_codec_bus_info); - type_register_static(&intel_hda_info_ich6); - type_register_static(&intel_hda_info_ich9); - type_register_static(&hda_codec_device_type_info); -} - -type_init(intel_hda_register_types) - /* * create intel hda controller with codec attached to it, * so '-soundhw hda' works. */ -int intel_hda_and_codec_init(PCIBus *bus) +static int intel_hda_and_codec_init(PCIBus *bus) { PCIDevice *controller; BusState *hdabus; @@ -1327,3 +1317,13 @@ int intel_hda_and_codec_init(PCIBus *bus) return 0; } +static void intel_hda_register_types(void) +{ + type_register_static(&hda_codec_bus_info); + type_register_static(&intel_hda_info_ich6); + type_register_static(&intel_hda_info_ich9); + type_register_static(&hda_codec_device_type_info); + pci_register_soundhw("hda", "Intel HD Audio", intel_hda_and_codec_init); +} + +type_init(intel_hda_register_types) |