]> git.sur5r.net Git - u-boot/blobdiff - lib_i386/pci.c
move prototypes for gunzip() and zunzip() to common.h
[u-boot] / lib_i386 / pci.c
index 4331b04418c153fe7e6516dd667171b676f6667d..9020e7ce7646df66ab777244cffb59f57ef9efb1 100644 (file)
@@ -26,7 +26,6 @@
 #include <asm/io.h>
 #include <asm/pci.h>
 
-#ifdef CONFIG_PCI
 #undef PCI_ROM_SCAN_VERBOSE
 
 int pci_shadow_rom(pci_dev_t dev, unsigned char *dest)
@@ -60,7 +59,7 @@ int pci_shadow_rom(pci_dev_t dev, unsigned char *dest)
               vendor, device, class_code);
 #endif
        /* Enable the rom addess decoder */
-       pci_write_config_dword(dev, PCI_ROM_ADDRESS, PCI_ROM_ADDRESS_MASK);
+       pci_write_config_dword(dev, PCI_ROM_ADDRESS, (u32)PCI_ROM_ADDRESS_MASK);
        pci_read_config_dword(dev, PCI_ROM_ADDRESS, &addr_reg);
 
        if (!addr_reg) {
@@ -151,5 +150,3 @@ int pci_shadow_rom(pci_dev_t dev, unsigned char *dest)
 
        return res;
 }
-
-#endif