summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2018-05-16 17:32:59 -0400
committerTom Rini <trini@konsulko.com>2018-05-16 17:32:59 -0400
commit00ef2cd6c7bcad475522e047105f41174fceb2af (patch)
treeaac7158caefeeaac15df5442bf5daff56c666777 /drivers
parentf2d0f5e7ab3b8a7b4bf6e2ac499b4867c701d52d (diff)
parentf717b4c8e7fc871573755a05be96c8ef857eabce (diff)
downloadu-boot-00ef2cd6c7bcad475522e047105f41174fceb2af.tar.gz
Merge git://git.denx.de/u-boot-dm
Diffstat (limited to 'drivers')
-rw-r--r--drivers/pinctrl/pinctrl-uclass.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/pinctrl/pinctrl-uclass.c b/drivers/pinctrl/pinctrl-uclass.c
index d7e38ae729..c38bb212ed 100644
--- a/drivers/pinctrl/pinctrl-uclass.c
+++ b/drivers/pinctrl/pinctrl-uclass.c
@@ -199,6 +199,12 @@ static int pinctrl_select_state_simple(struct udevice *dev)
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))
+ return 0;
+ /*
* Try full-implemented pinctrl first.
* If it fails or is not implemented, try simple one.
*/