Re: [PATCH] pinctrl: pinctrl-pic32: Fix resource leaks
From: Ethan Tidmore
Date: Fri Feb 27 2026 - 16:02:21 EST
On Thu Feb 26, 2026 at 4:37 PM CST, Linus Walleij wrote:
...
> Can't you just use devm_clk_get_enabled() and let devres do this?
I thought about that but wasn't sure because I saw:
ret = gpiochip_add_data(&bank->gpio_chip, bank);
Later in the function and knew that you're not really suppose to mix
manual resource allocation and devres.
Thanks,
ET