[PATCH] pinctrl: zte: fix group_desc initialization

Linus Walleij linus.walleij at linaro.org
Mon May 29 01:17:59 PDT 2017


On Mon, May 22, 2017 at 3:59 PM, Shawn Guo <shawnguo at kernel.org> wrote:

> From: Shawn Guo <shawn.guo at linaro.org>
>
> There are a couple of issues with group_desc initialization in function
> zx_pinctrl_build_state().
>
>  - num_pins is not initialized and remains zero.
>  - pins shouldn't be initialized with a pointer to variable in the
>    stack.
>
> With them fixed, pin_request() in pinmux_enable_setting() can be invoked
> correctly.
>
> Signed-off-by: Shawn Guo <shawn.guo at linaro.org>

Patch applied.

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list