From cbca977ea121d7483b0c2351b17dca08a21cb1ca Mon Sep 17 00:00:00 2001 From: Rob Herring Date: Mon, 28 Sep 2020 15:19:41 -0500 Subject: [PATCH] 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 Message-Id: <20200928201942.3242124-1-robh@kernel.org> Signed-off-by: David Gibson --- checks.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/checks.c b/checks.c index b7955db..17cb689 100644 --- a/checks.c +++ b/checks.c @@ -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])