]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pci: Don't add bogus empty resources to PHBs
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sat, 4 May 2013 14:22:57 +0000 (14:22 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sun, 5 May 2013 23:25:41 +0000 (09:25 +1000)
commitb820c1558df480f7b0e0ae2f980524364b01c2eb
tree1edfccd2c565c1e9ad91554745c4521268d51656
parent6213c7fa5b6843bfa8b3d260e0c869afe8d9993b
powerpc/pci: Don't add bogus empty resources to PHBs

When converting to use the new pci_add_resource_offset() we didn't
properly account for empty resources (0 flags) and add those bogons
to the PHBs. The result is some annoying messages in the log.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/pci-common.c