diff options
author | Rob Herring <robh@kernel.org> | 2020-09-28 15:19:41 -0500 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2020-10-02 13:30:24 +1000 |
commit | cbca977ea121d7483b0c2351b17dca08a21cb1ca (patch) | |
tree | 02de1709a3f75795ea4f53a561b879fe8371953c /checks.c | |
parent | 73e0f143b73d80889124e209548ee46834c6b559 (diff) | |
download | dtc-cbca977ea121d7483b0c2351b17dca08a21cb1ca.zip dtc-cbca977ea121d7483b0c2351b17dca08a21cb1ca.tar.gz dtc-cbca977ea121d7483b0c2351b17dca08a21cb1ca.tar.bz2 |
checks: Allow PCI bridge child nodes without an address
Some PCI bridge nodes have child nodes such as an interrupt controller
which are not PCI devices. Allow these nodes which don't have a
unit-address.
Signed-off-by: Rob Herring <robh@kernel.org>
Message-Id: <20200928201942.3242124-1-robh@kernel.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'checks.c')
-rw-r--r-- | checks.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -891,10 +891,8 @@ static void check_pci_device_reg(struct check *c, struct dt_info *dti, struct no return; prop = get_property(node, "reg"); - if (!prop) { - FAIL(c, dti, node, "missing PCI reg property"); + if (!prop) return; - } cells = (cell_t *)prop->val.val; if (cells[1] || cells[2]) |