Re: spi: imx: Use devm_clk_get_enabled() calls in spi_imx_probe()
From: Markus Elfring
Date: Mon Nov 23 2026 - 13:24:43 EST
>> * Reuse existing functionality from devm_clk_get_enabled() instead of
>> keeping duplicate source code.
>>
>> * Delete clk_disable_unprepare() calls on error handling paths.
>>
>> * Omit the label “out_put_per”.
>>
>> This issue was detected by using the Coccinelle software.
>
> This now messes up with the PM callbacks at remove stage.
> It's not trivial how to make it correct.
Is there a need to adjust and extend devres programming interfaces any more?
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/driver-api/driver-model/devres.rst?h=v7.4-rc4#n242
Regards,
Markus