diff options
author | Peter Maydell | 2021-05-01 00:23:48 +0200 |
---|---|---|
committer | Peter Maydell | 2021-05-10 18:21:53 +0200 |
commit | f16a3bf81b8b01c53144167f6cc12fb126028972 (patch) | |
tree | 872b603ed3663f006d721b796f8994a5dcb5bb4a /hw/sd/omap_mmc.c | |
parent | target/arm: Make WFI a NOP for userspace emulators (diff) | |
download | qemu-f16a3bf81b8b01c53144167f6cc12fb126028972.tar.gz qemu-f16a3bf81b8b01c53144167f6cc12fb126028972.tar.xz qemu-f16a3bf81b8b01c53144167f6cc12fb126028972.zip |
hw/sd/omap_mmc: Use device_cold_reset() instead of device_legacy_reset()
The omap_mmc_reset() function resets its SD card via
device_legacy_reset(). We know that the SD card does not have a qbus
of its own, so the new device_cold_reset() function (which resets
both the device and its child buses) is equivalent here to
device_legacy_reset() and we can just switch to the new API.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20210430222348.8514-1-peter.maydell@linaro.org
Diffstat (limited to 'hw/sd/omap_mmc.c')
-rw-r--r-- | hw/sd/omap_mmc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/sd/omap_mmc.c b/hw/sd/omap_mmc.c index 1f946908fe..b67def6381 100644 --- a/hw/sd/omap_mmc.c +++ b/hw/sd/omap_mmc.c @@ -318,7 +318,7 @@ void omap_mmc_reset(struct omap_mmc_s *host) * into any bus, and we must reset it manually. When omap_mmc is * QOMified this must move into the QOM reset function. */ - device_legacy_reset(DEVICE(host->card)); + device_cold_reset(DEVICE(host->card)); } static uint64_t omap_mmc_read(void *opaque, hwaddr offset, |