mirror of https://github.com/xqemu/xqemu.git
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:
parent
56849366e4
commit
bfde43b79a
|
@ -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]);
|
||||
|
|
Loading…
Reference in New Issue