[PATCH] spi: imx: Use devm_clk_get_enabled() calls in spi_imx_probe()

Andy Shevchenko andriy.shevchenko at linux.intel.com
Mon Nov 23 09:27:40 PST 2026


On Mon, Nov 23, 2026 at 05:23:12PM +0100, Markus Elfring wrote:
> 
> * 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.

-- 
With Best Regards,
Andy Shevchenko





More information about the linux-arm-kernel mailing list