aboutsummaryrefslogtreecommitdiff
path: root/hw/ac97.c
diff options
context:
space:
mode:
authormalc <av1474@comtv.ru>2009-05-14 03:11:35 +0400
committermalc <av1474@comtv.ru>2009-05-14 03:20:43 +0400
commit1a7dafce1dfc3dc2052d0c5d8397e72121291c57 (patch)
tree6b83da7787156494d16c58e2d5a41396a01a964f /hw/ac97.c
parentb36aa85c7bef893bdad1f0646a2f6b3018eff0fb (diff)
Remove any pretense that there can be more than one AudioState
Diffstat (limited to 'hw/ac97.c')
-rw-r--r--hw/ac97.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/ac97.c b/hw/ac97.c
index f2ae4b3b19..0ff294109d 100644
--- a/hw/ac97.c
+++ b/hw/ac97.c
@@ -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;
}