lib/fdtdec: Fix compiling warning caused by changing fdt_addr_t type
[oweals/u-boot.git] / drivers / pci / pci_auto.c
index 7ff282b48cb07c8a8bf9d7b7937fe3c5527d4590..41d5447f122b129b65adc1b25484657663e601d4 100644 (file)
@@ -82,9 +82,9 @@ void pciauto_setup_device(struct pci_controller *hose,
        pci_size_t bar_size;
        u16 cmdstat = 0;
        int bar, bar_nr = 0;
+#ifndef CONFIG_PCI_ENUM_ONLY
        u8 header_type;
        int rom_addr;
-#ifndef CONFIG_PCI_ENUM_ONLY
        pci_addr_t bar_value;
        struct pci_region *bar_res;
        int found_mem64 = 0;
@@ -148,8 +148,9 @@ void pciauto_setup_device(struct pci_controller *hose,
                                bar_res = mem;
 #endif
 
-                       debug("PCI Autoconfig: BAR %d, Mem, size=0x%llx, ",
-                             bar_nr, (unsigned long long)bar_size);
+                       debug("PCI Autoconfig: BAR %d, %s, size=0x%llx, ",
+                             bar_nr, bar_res == prefetch ? "Prf" : "Mem",
+                             (unsigned long long)bar_size);
                }
 
 #ifndef CONFIG_PCI_ENUM_ONLY
@@ -181,6 +182,7 @@ void pciauto_setup_device(struct pci_controller *hose,
                bar_nr++;
        }
 
+#ifndef CONFIG_PCI_ENUM_ONLY
        /* Configure the expansion ROM address */
        pci_hose_read_config_byte(hose, dev, PCI_HEADER_TYPE, &header_type);
        if (header_type != PCI_HEADER_TYPE_CARDBUS) {
@@ -201,6 +203,7 @@ void pciauto_setup_device(struct pci_controller *hose,
                        debug("\n");
                }
        }
+#endif
 
        pci_hose_write_config_word(hose, dev, PCI_COMMAND, cmdstat);
        pci_hose_write_config_byte(hose, dev, PCI_CACHE_LINE_SIZE,