aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCédric Le Goater <clg@kaod.org>2021-10-12 08:20:08 +0200
committerCédric Le Goater <clg@kaod.org>2021-10-12 08:20:08 +0200
commita7d78beff46f8e5c4343edca4b76675e6e55172e (patch)
tree044f8245d4fca9b61618b4a58268ba3091b8fc3b /include
parent30b6852ce4c3398c54fc6f6c7ff5ccbf8c15cf4f (diff)
downloadqemu-a7d78beff46f8e5c4343edca4b76675e6e55172e.zip
qemu-a7d78beff46f8e5c4343edca4b76675e6e55172e.tar.gz
qemu-a7d78beff46f8e5c4343edca4b76675e6e55172e.tar.bz2
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>
Diffstat (limited to 'include')
-rw-r--r--include/hw/ssi/aspeed_smc.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/hw/ssi/aspeed_smc.h b/include/hw/ssi/aspeed_smc.h
index 0ea536a..f32f66f 100644
--- a/include/hw/ssi/aspeed_smc.h
+++ b/include/hw/ssi/aspeed_smc.h
@@ -37,7 +37,6 @@ typedef struct AspeedSMCFlash {
uint32_t size;
MemoryRegion mmio;
- DeviceState *flash;
} AspeedSMCFlash;
#define TYPE_ASPEED_SMC "aspeed.smc"