diff options
author | Rob Herring <robh@kernel.org> | 2018-05-14 19:40:20 -0500 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2018-05-14 19:44:23 -0500 |
commit | 9601000cd57e395b56642596903f59d61d91e176 (patch) | |
tree | 7814fb1ce622f586dfc77641b04a1824866a90fd /scripts/dtc | |
parent | 2ff0e41ac5a7b5c3f1ac1a82f4bbf6083ae09d8d (diff) | |
parent | f130307054a59ca21d2396f386be77ebd2e8ca96 (diff) |
Merge tag 'devicetree-fixes-for-4.17' into dt/next to pick-up fixes
Diffstat (limited to 'scripts/dtc')
-rw-r--r-- | scripts/dtc/checks.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/dtc/checks.c b/scripts/dtc/checks.c index c07ba4da9e36..815eaf140ab5 100644 --- a/scripts/dtc/checks.c +++ b/scripts/dtc/checks.c @@ -787,10 +787,9 @@ static void check_pci_bridge(struct check *c, struct dt_info *dti, struct node * FAIL(c, dti, node, "incorrect #size-cells for PCI bridge"); prop = get_property(node, "bus-range"); - if (!prop) { - FAIL(c, dti, node, "missing bus-range for PCI bridge"); + if (!prop) return; - } + if (prop->val.len != (sizeof(cell_t) * 2)) { FAIL_PROP(c, dti, node, prop, "value must be 2 cells"); return; |