dm: pinctrl: fix for introduce PINCONF_RECURSIVE option
authorPatrick Delaunay <patrick.delaunay@st.com>
Mon, 21 Oct 2019 13:02:40 +0000 (15:02 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 21 Oct 2019 13:40:54 +0000 (09:40 -0400)
commit44510daea4d07fee736dd90411c4b503340b449e
tree2a4a56b39f01f7ed8dff33678537d86c187f0fa9
parentae799ffcae1109eaac243afe19ddf60ba728ce7c
dm: pinctrl: fix for introduce PINCONF_RECURSIVE option

Correct the name of the define used CONFIG_IS_ENABLED which is
not aligned with Kconfig name: CONFIG_$(SPL_)PINCONF_RECURSIVE.

The recursive calls is conditional only for UCLASS_PINCONFIG
"pinconfig" driver.
It is always needed to call pinctrl_post_bind for UCLASS_PINCTRL
"pinctrl", the test CONFIG_IS_ENABLED(PINCONF_RECURSIVE) need to
be removed for this driver.

This correct a regression introduced because the same patch is
applied twice times in u-boot-dm branch:
- commit e878b53a79d1 ("dm: pinctrl: introduce PINCONF_RECURSIVE
  option")
- commit c20851b3d850 ("dm: pinctrl: introduce PINCONF_RECURSIVE
  option")

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
drivers/pinctrl/pinctrl-uclass.c