Commit fcf36f6e authored by Hui Wang's avatar Hui Wang Committed by Greg Kroah-Hartman
Browse files

pinctrl: imx: Return NULL if no group is matched and found



[ Upstream commit e64c0ff0 ]

Currently if no group is matched and found, this function will return
the last grp to the caller, this is not expected, it is supposed to
return NULL in this case.

Fixes: e566fc11 ("pinctrl: imx: use generic pinctrl helpers for managing groups")
Signed-off-by: default avatarHui Wang <hui.wang@canonical.com>
Reviewed-by: default avatarFrank Li <Frank.Li@nxp.com>
Link: https://lore.kernel.org/20250327031600.99723-1-hui.wang@canonical.com


Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 7f5476d8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment