mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
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: - commite878b53a79
("dm: pinctrl: introduce PINCONF_RECURSIVE option") - commitc20851b3d8
("dm: pinctrl: introduce PINCONF_RECURSIVE option") Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
This commit is contained in:
parent
ae799ffcae
commit
44510daea4
1 changed files with 1 additions and 3 deletions
|
@ -157,7 +157,7 @@ static int pinconfig_post_bind(struct udevice *dev)
|
|||
|
||||
UCLASS_DRIVER(pinconfig) = {
|
||||
.id = UCLASS_PINCONFIG,
|
||||
#if CONFIG_IS_ENABLED(PINCONFIG_RECURSIVE)
|
||||
#if CONFIG_IS_ENABLED(PINCONF_RECURSIVE)
|
||||
.post_bind = pinconfig_post_bind,
|
||||
#endif
|
||||
.name = "pinconfig",
|
||||
|
@ -426,9 +426,7 @@ static int __maybe_unused pinctrl_post_bind(struct udevice *dev)
|
|||
|
||||
UCLASS_DRIVER(pinctrl) = {
|
||||
.id = UCLASS_PINCTRL,
|
||||
#if CONFIG_IS_ENABLED(PINCONF_RECURSIVE)
|
||||
.post_bind = pinctrl_post_bind,
|
||||
#endif
|
||||
.flags = DM_UC_FLAG_SEQ_ALIAS,
|
||||
.name = "pinctrl",
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue