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:
parent
1bb4e6caa5
commit
a2efd284c8
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue