From: Grant Likely Date: Wed, 18 Aug 2010 08:27:55 +0000 (+0000) Subject: powerpc/pci: Fix checking for child bridges in PCI code. X-Git-Tag: v2.6.36-rc3~37^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76ec01dbb70353928a9cee826502073ae928bbba;p=pandora-kernel.git powerpc/pci: Fix checking for child bridges in PCI code. pci_device_to_OF_node() can return null, and list_for_each_entry will never enter the loop when dev is NULL, so it looks like this test is a typo. Reported-by: Julia Lawall Signed-off-by: Grant Likely Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed