pinctrl: exit pinconfig_post_bind if there are no subnodes
This fixes RK3288 SPL hanging or hitting this assert: drivers/core/ofnode.c:183: ofnode_first_subnode: Assertion `ofnode_valid(node)' failed. Signed-off-by: Urja Rannikko <urjaman@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
This commit is contained in:
parent
ed9c9059f2
commit
63402831e0
@ -116,6 +116,9 @@ static int pinconfig_post_bind(struct udevice *dev)
|
||||
ofnode node;
|
||||
int ret;
|
||||
|
||||
if (!dev_of_valid(dev))
|
||||
return 0;
|
||||
|
||||
dev_for_each_subnode(node, dev) {
|
||||
if (pre_reloc_only &&
|
||||
!ofnode_pre_reloc(node))
|
||||
|
Loading…
Reference in New Issue
Block a user