mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
pinctrl: Drop post_bind() method when not needed
This is not used with of-platdata, so remove it in that case. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
fb8c9fb3fa
commit
c8fbf3089b
1 changed files with 3 additions and 1 deletions
|
@ -305,7 +305,7 @@ int pinctrl_select_state(struct udevice *dev, const char *statename)
|
|||
* Some device which is logical like mmc.blk, do not have
|
||||
* a valid ofnode.
|
||||
*/
|
||||
if (!ofnode_valid(dev->node))
|
||||
if (!dev_has_of_node(dev))
|
||||
return 0;
|
||||
/*
|
||||
* Try full-implemented pinctrl first.
|
||||
|
@ -416,7 +416,9 @@ static int __maybe_unused pinctrl_post_bind(struct udevice *dev)
|
|||
|
||||
UCLASS_DRIVER(pinctrl) = {
|
||||
.id = UCLASS_PINCTRL,
|
||||
#if !CONFIG_IS_ENABLED(OF_PLATDATA)
|
||||
.post_bind = pinctrl_post_bind,
|
||||
#endif
|
||||
.flags = DM_UC_FLAG_SEQ_ALIAS,
|
||||
.name = "pinctrl",
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue