drivers: pinmux: stm32 Fix return stm32_dt_pinctrl_remap value

Fix incorrect return value check when converting pinctrl
format to existing pin config format

Signed-off-by: Marin Jurjevic <marin.jurjevic@hotmail.com>
This commit is contained in:
Marin Jurjevic 2020-10-20 22:30:07 +02:00 committed by Kumar Gala
parent 1bb4e6caa5
commit a2efd284c8

View file

@ -139,7 +139,7 @@ int stm32_dt_pinctrl_configure(const struct soc_gpio_pinctrl *pinctrl,
}
#if DT_HAS_COMPAT_STATUS_OKAY(st_stm32f1_pinctrl)
if (!stm32_dt_pinctrl_remap(pinctrl, list_size, base)) {
if (stm32_dt_pinctrl_remap(pinctrl, list_size, base)) {
/* Wrong remap config. Exit */
return -EINVAL;
}