spi: imx: Use devm_clk_get_enabled() calls in spi_imx_probe()

Markus Elfring Markus.Elfring at web.de
Mon Nov 23 10:24:21 PST 2026


>> * 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



More information about the linux-arm-kernel mailing list