diff options
Diffstat (limited to 'hw/ac97.c')
-rw-r--r-- | hw/ac97.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1310,7 +1310,6 @@ static void ac97_on_reset (void *opaque) int ac97_init (PCIBus *bus) { - AudioState *audio = AUD_init(); PCIAC97LinkState *d; AC97LinkState *s; uint8_t *c; @@ -1371,7 +1370,7 @@ int ac97_init (PCIBus *bus) pci_register_io_region (&d->dev, 1, 64 * 4, PCI_ADDRESS_SPACE_IO, ac97_map); register_savevm ("ac97", 0, 2, ac97_save, ac97_load, s); qemu_register_reset (ac97_on_reset, s); - AUD_register_card (audio, "ac97", &s->card); + AUD_register_card ("ac97", &s->card); ac97_on_reset (s); return 0; } |