pinctrl: th1520: Fix return value for unknown pin error
authorDrew Fustini <dfustini@tenstorrent.com>
Wed, 9 Oct 2024 01:16:46 +0000 (18:16 -0700)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 9 Oct 2024 12:42:07 +0000 (14:42 +0200)
commit7027e36f55f663c2248e8a2d67b94e34cab0ac7f
tree03371ebfc794cbe150bcbc0a8d5d52c13d3b947a
parent2694868880705e8f6bb61b24b1b25adc42a4a217
pinctrl: th1520: Fix return value for unknown pin error

Fix th1520_pinctrl_dt_node_to_map() to set the return value before
jumping to free_configs when an unknown pin error occurs.

Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/r/202410022336.xyWlV0Tf-lkp@intel.com/
Signed-off-by: Drew Fustini <dfustini@tenstorrent.com>
Link: https://lore.kernel.org/20241008-th1520-pinctrl-fixes-v3-1-5b60db446a49@tenstorrent.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-th1520.c