Re: [PATCH v2] pinctrl: renesas: rzn1: Use devm_clk_get_enabled() in rzn1_pinctrl_probe()

From: Geert Uytterhoeven

Date: Thu Nov 26 2026 - 11:25:44 EST


On Mon, Nov 23, 2026, at 15:21, 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”.

And platform_set_drvdata()...


>
> This issue was detected by using the Coccinelle software.
>
> Signed-off-by: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>
> ---
>
> V2:
> Wolfram Sang requested further adjustments according to the proposed changes.
> https://lore.kernel.org/linux-gpio/awQ7qa5FGG9RETtS@ninjato/

Reviewed-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>
i.e. will queue in renesas-pinctrl for v7.5.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds