Let's use the struct of_pci_range.flags field instead so we can remove
the pci_space field.

Cc: Benjamin Herrenschmidt <b...@kernel.crashing.org>
Cc: Paul Mackerras <pau...@samba.org>
Cc: Michael Ellerman <m...@ellerman.id.au>
Cc: linuxppc-dev@lists.ozlabs.org
Signed-off-by: Rob Herring <r...@kernel.org>
---
 arch/powerpc/kernel/pci-common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/powerpc/kernel/pci-common.c b/arch/powerpc/kernel/pci-common.c
index c6c03416a151..d0074ad73aa3 100644
--- a/arch/powerpc/kernel/pci-common.c
+++ b/arch/powerpc/kernel/pci-common.c
@@ -728,7 +728,7 @@ void pci_process_bridge_OF_ranges(struct pci_controller 
*hose,
                               " MEM 0x%016llx..0x%016llx -> 0x%016llx %s\n",
                               range.cpu_addr, range.cpu_addr + range.size - 1,
                               range.pci_addr,
-                              (range.pci_space & 0x40000000) ?
+                              (range.flags & IORESOURCE_PREFETCH) ?
                               "Prefetch" : "");
 
                        /* We support only 3 memory ranges */
-- 
2.20.1

Reply via email to