ac97: Revert to opaque type

This was changed in merge conflict resolution, but using the opaque name
is more consistent with QEMU convention and resolves function pointer
warning in reset callback handler registration.
This commit is contained in:
Matt Borgerson 2019-10-02 00:34:47 -07:00
parent 56849366e4
commit bfde43b79a
1 changed files with 3 additions and 1 deletions

View File

@ -1271,8 +1271,10 @@ const MemoryRegionOps ac97_io_nabm_ops = {
.endianness = DEVICE_LITTLE_ENDIAN,
};
static void ac97_on_reset(AC97LinkState *s)
static void ac97_on_reset(void *opaque)
{
AC97LinkState *s = opaque;
reset_bm_regs (s, &s->bm_regs[0]);
reset_bm_regs (s, &s->bm_regs[1]);
reset_bm_regs (s, &s->bm_regs[2]);