]> git.proxmox.com Git - mirror_qemu.git/commit - hw/arm/aspeed.c
aspeed/smc: Remove the 'flash' attribute from AspeedSMCFlash
authorCédric Le Goater <clg@kaod.org>
Tue, 12 Oct 2021 06:20:08 +0000 (08:20 +0200)
committerCédric Le Goater <clg@kaod.org>
Tue, 12 Oct 2021 06:20:08 +0000 (08:20 +0200)
commita7d78beff46f8e5c4343edca4b76675e6e55172e
tree044f8245d4fca9b61618b4a58268ba3091b8fc3b
parent30b6852ce4c3398c54fc6f6c7ff5ccbf8c15cf4f
aspeed/smc: Remove the 'flash' attribute from AspeedSMCFlash

There is no need to keep a reference of the flash qdev in the AspeedSMCFlash
state: the SPI bus takes ownership and will release its resources. Remove
AspeedSMCFlash::flash.

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
hw/arm/aspeed.c
include/hw/ssi/aspeed_smc.h