Revision 36cd6f6f hw/audio/intel-hda.c

b/hw/audio/intel-hda.c
1300 1300
    .class_init = hda_codec_device_class_init,
1301 1301
};
1302 1302

  
1303
static void intel_hda_register_types(void)
1304
{
1305
    type_register_static(&hda_codec_bus_info);
1306
    type_register_static(&intel_hda_info_ich6);
1307
    type_register_static(&intel_hda_info_ich9);
1308
    type_register_static(&hda_codec_device_type_info);
1309
}
1310

  
1311
type_init(intel_hda_register_types)
1312

  
1313 1303
/*
1314 1304
 * create intel hda controller with codec attached to it,
1315 1305
 * so '-soundhw hda' works.
1316 1306
 */
1317
int intel_hda_and_codec_init(PCIBus *bus)
1307
static int intel_hda_and_codec_init(PCIBus *bus)
1318 1308
{
1319 1309
    PCIDevice *controller;
1320 1310
    BusState *hdabus;
......
1327 1317
    return 0;
1328 1318
}
1329 1319

  
1320
static void intel_hda_register_types(void)
1321
{
1322
    type_register_static(&hda_codec_bus_info);
1323
    type_register_static(&intel_hda_info_ich6);
1324
    type_register_static(&intel_hda_info_ich9);
1325
    type_register_static(&hda_codec_device_type_info);
1326
    pci_register_soundhw("hda", "Intel HD Audio", intel_hda_and_codec_init);
1327
}
1328

  
1329
type_init(intel_hda_register_types)

Also available in: Unified diff