[PATCH] pinctrl: spear: plgpio: Unprepare the clock on probe failure
Viresh Kumar
viresh.kumar at linaro.org
Tue Dec 1 23:07:59 PST 2026
On 01-12-26, 21:22, Tian Xuechen wrote:
> plgpio_probe() prepares the clock before allocating the parent IRQ
> array. If the allocation fails, probe returns -ENOMEM without undoing
> a successful clk_prepare().
>
> Set ret to -ENOMEM and use the existing unprepare_clk path so that
> the clock preparation is balanced and the allocation error is
> returned.
>
> Fixes: face7c04b030 ("pinctrl: spear/plgpio: Pass irqchip when adding gpiochip")
> Signed-off-by: Tian Xuechen <202300460064 at mail.sdu.edu.cn>
Acked-by: Viresh Kumar <viresh.kumar at linaro.org>
--
viresh
More information about the linux-arm-kernel
mailing list