]> git.dujemihanovic.xyz Git - u-boot.git/commit
pci: pci-uclass: Make DT subnode parse optional
authorSuneel Garapati <sgarapati@marvell.com>
Sat, 19 Oct 2019 23:02:48 +0000 (16:02 -0700)
committerStefan Roese <sr@denx.de>
Tue, 25 Aug 2020 03:41:09 +0000 (05:41 +0200)
commitbc30140d20d041a6ed5d52175e9953c36f8f5473
tree8bd475dc362c27d31cb74750af76a18b51bdac47
parentb3699a13a675e06f2b27569cfc94f0a3ad8505cc
pci: pci-uclass: Make DT subnode parse optional

Parse subnode DT properties only if parent node is valid.
Otherwise, assert is triggered on ofnode_valid in ofnode_first_subnode
from dev_for_each_subnode.

Signed-off-by: Suneel Garapati <sgarapati@marvell.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Cc: Bin Meng <bmeng.cn@gmail.com>
drivers/pci/pci-uclass.c