Re: [PATCH v2] pinctrl: renesas: rzn1: Use devm_clk_get_enabled() in rzn1_pinctrl_probe()
From: Wolfram Sang
Date: Mon Nov 23 2026 - 12:08:10 EST
On Mon, Nov 23, 2026 at 03:21:57PM +0100, Markus Elfring wrote:
> From: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>
> Date: Mon, 23 Nov 2026 15:00:10 +0100
>
> * Reuse existing functionality from devm_clk_get_enabled() instead of
> keeping duplicate source code.
>
> * Delete a clk_disable_unprepare() call on an error handling path
> and the implementation of the function “rzn1_pinctrl_remove”.
>
> * Convert the data structure member “clk” to a local variable.
>
> * Omit the label “err_clk”.
>
> This issue was detected by using the Coccinelle software.
>
> Signed-off-by: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>
No regressions observed on my N1D board and nice diffstat!
Reviewed-by: Wolfram Sang <wsa+renesas@xxxxxxxxxxxxxxxxxxxx>
Tested-by: Wolfram Sang <wsa+renesas@xxxxxxxxxxxxxxxxxxxx>
Attachment:
signature.asc
Description: PGP signature