Re: dmaengine: dw: Use devm_clk_get_optional_enabled() in dw_probe()

From: Markus Elfring

Date: Thu Nov 19 2026 - 12:28:05 EST


>> Reuse existing functionality from devm_clk_get_optional_enabled()
>> instead of keeping duplicate source code.
>>
>> The source code was transformed by using the Coccinelle software.
>
> Something is wrong with your tools or scripts. It now brings a regression.
Would you like to extend background information?

https://elixir.bootlin.com/linux/v7.4-rc1/source/include/linux/clk.h#L680-L699
…
* devm_clk_get_optional_enabled - devm_clk_get_optional() +
* clk_prepare_enable()
…


Regards,
Markus