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
@ -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…
Reference in New Issue
Block a user