[PATCH net-next v2] net: ethernet: cortina: Use devm_clk_get_enabled() in gemini_ethernet_port_probe()

Linus Walleij linusw at kernel.org
Tue Dec 1 10:53:53 PST 2026


Hi Markus,

whoa! Your patches are improving and much more
interesting!

On Sun, Nov 29, 2026 at 10:34 AM Markus Elfring <Markus.Elfring at web.de> wrote:

> From: Markus Elfring <elfring at users.sourceforge.net>
> Date: Sun, 29 Nov 2026 09:42:18 +0100
>
> Replace the combination of devm_clk_get() and clk_prepare_enable()
> by a devm_clk_get_enabled() call.
> Delete a clk_disable_unprepare() call on an error handling path
> and in the implementation of the function “gemini_port_remove”.
> Drop the label “unprepare”.
>
> This issue was detected by using the Coccinelle software.
>
> Signed-off-by: Markus Elfring <elfring at users.sourceforge.net>

Reviewed-by: Linus Walleij <linusw at kernel.org>

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list