mbox series

[0/6] dma:Use devm_clk_get_enabled() helpers

Message ID 20240823101933.9517-1-liaoyuanhong@vivo.com (mailing list archive)
Headers show
Series dma:Use devm_clk_get_enabled() helpers | expand

Message

Liao Yuanhong Aug. 23, 2024, 10:19 a.m. UTC
The devm_clk_get_enabled() helpers:
    - call devm_clk_get()
    - call clk_prepare_enable() and register what is needed in order to
     call clk_disable_unprepare() when needed, as a managed resource.

This simplifies the code and avoids the calls to clk_disable_unprepare().

Liao Yuanhong (6):
  dma:at_hdmac:Use devm_clk_get_enabled() helpers
  dma:dma-jz4780:Use devm_clk_get_enabled() helpers
  dma:imx-dma:Use devm_clk_get_enabled() helpers
  dma:imx-sdma:Use devm_clk_get_enabled() helpers
  dma:milbeaut-hdmac:Use devm_clk_get_enabled() helpers
  dma:uniphier-mdmac:Use devm_clk_get_enabled() helpers

 drivers/dma/at_hdmac.c       | 22 ++++----------
 drivers/dma/dma-jz4780.c     | 18 ++++--------
 drivers/dma/imx-dma.c        | 38 ++++++++----------------
 drivers/dma/imx-sdma.c       | 57 ++++--------------------------------
 drivers/dma/milbeaut-hdmac.c | 20 ++++---------
 drivers/dma/uniphier-mdmac.c | 20 ++++---------
 6 files changed, 41 insertions(+), 134 deletions(-)