aspeed/smc: Remove the 'size' 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)
commit6bb55e796740a0b685831faa784efb0c38dd151c
tree1aeb253fa8218dcd193061ff4b2d0a57445b9bd5
parenta7d78beff46f8e5c4343edca4b76675e6e55172e
aspeed/smc: Remove the 'size' attribute from AspeedSMCFlash

AspeedSMCFlash::size is only used to compute the initial size of the
boot_rom region. Not very useful, so directly call memory_region_size()
instead.

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