[PATCH 0/3] dma: mv_xor: convert to devm resource management

From: Rosen Penev

Date: Wed Jun 10 2026 - 03:00:57 EST


Convert the mv_xor driver to use managed device resources (devm)
to simplify error handling and removal paths.

Patch 1 replaces the open-coded clock acquire/enable/disable/put
with devm_clk_get_optional_enabled, eliminating manual clock
cleanup in the probe error path.

Patch 2 adds the missing platform remove callback so that
channels, DMA devices, and IRQs are properly cleaned up on
driver unbind.

Patch 3 converts DMA pool allocation and IRQ requests to their
devm counterparts, allowing removal of the err_free_irq and
err_free_dma error labels.

Rosen Penev (3):
dma: mv_xor: use devm_clk_get_optional_enabled
dma: mv_xor: add missing platform remove function
dma: mv_xor: use devm for dma pool and irq

drivers/dma/mv_xor.c | 51 +++++++++++++++++++++-----------------------
1 file changed, 24 insertions(+), 27 deletions(-)

--
2.54.0