mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-30 05:21:55 -06:00
hw/audio/ac97: Replace container_of() by AC97() QOM cast macro
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20230220131837.26292-5-philmd@linaro.org>
This commit is contained in:
parent
721d8f2540
commit
911a6afbc5
1 changed files with 1 additions and 1 deletions
|
@ -1295,7 +1295,7 @@ static const MemoryRegionOps ac97_io_nabm_ops = {
|
||||||
|
|
||||||
static void ac97_on_reset(DeviceState *dev)
|
static void ac97_on_reset(DeviceState *dev)
|
||||||
{
|
{
|
||||||
AC97LinkState *s = container_of(dev, AC97LinkState, dev.qdev);
|
AC97LinkState *s = AC97(dev);
|
||||||
|
|
||||||
reset_bm_regs(s, &s->bm_regs[0]);
|
reset_bm_regs(s, &s->bm_regs[0]);
|
||||||
reset_bm_regs(s, &s->bm_regs[1]);
|
reset_bm_regs(s, &s->bm_regs[1]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue