On 5/12/26 13:34, Peter Maydell wrote:
Now we have no 3.2 DMA support, the omap_dma_enable_3_1_mapping()
function is called at reset, and there is no longer anywhere that
disables it.  Remove the function and the unused
omap_3_1_mapping_disabled struct field, and drop the indirection from
omap_dma_interrupts_update() through the intr_update function pointer
to omap_dma_interrupts_3_1_update(), instead inlining that last
function into omap_dma_interrupts_update().

The only other thing omap_dma_enable_3_1_mapping() was doing was
setting s->chans; since this is now never changed at runtime we can
move its setting into the init function rather than reset.

Signed-off-by: Peter Maydell<[email protected]>
---
  hw/dma/omap_dma.c | 52 ++++++++++++++++++++---------------------------
  1 file changed, 22 insertions(+), 30 deletions(-)

Reviewed-by: Richard Henderson <[email protected]>

r~

Reply via email to