aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2025-01-28 10:45:15 +0000
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2025-01-31 19:36:44 +0100
commitd44515d1862139d0456ed71209088fd3c0cf438e (patch)
tree279e83afc44f00077ff36fdeea4d058849f5173a
parent9c2fce87fc5218c0181abd9d8eb1dd7858103375 (diff)
downloadqemu-d44515d1862139d0456ed71209088fd3c0cf438e.zip
qemu-d44515d1862139d0456ed71209088fd3c0cf438e.tar.gz
qemu-d44515d1862139d0456ed71209088fd3c0cf438e.tar.bz2
hw/sd/omap_mmc: Remove unused coverswitch qemu_irq
The coverswitch qemu_irq is never connected to anything, and the only thing we do with it is set it in omap_mmc_reset(). Remove it. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-ID: <20250128104519.3981448-8-peter.maydell@linaro.org> [PMD: Remove unused 'coverswitch' field] Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
-rw-r--r--hw/sd/omap_mmc.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/hw/sd/omap_mmc.c b/hw/sd/omap_mmc.c
index a8b541c..18016a2 100644
--- a/hw/sd/omap_mmc.c
+++ b/hw/sd/omap_mmc.c
@@ -35,7 +35,6 @@ typedef struct OMAPMMCState {
qemu_irq irq;
qemu_irq dma_tx_gpio;
qemu_irq dma_rx_gpio;
- qemu_irq coverswitch;
MemoryRegion iomem;
omap_clk clk;
uint16_t last_cmd;
@@ -70,7 +69,6 @@ typedef struct OMAPMMCState {
int cdet_wakeup;
int cdet_enable;
- int cdet_state;
qemu_irq cdet;
} OMAPMMCState;
@@ -325,7 +323,6 @@ static void omap_mmc_reset(OMAPMMCState *host)
host->transfer = 0;
host->cdet_wakeup = 0;
host->cdet_enable = 0;
- qemu_set_irq(host->coverswitch, host->cdet_state);
host->clkdiv = 0;
omap_mmc_pseudo_reset(host);