[ar7] refresh and refine 972-cpmac_multi_probe.patch, patch from sn9
[openwrt.git] / target / linux / ar71xx / files / arch / mips / pci / pci-ar71xx.c
index 88eb917..c6c6e55 100644 (file)
@@ -107,7 +107,7 @@ int ar71xx_pci_be_handler(int is_fixup)
                __raw_writel(ahb_err, base + PCI_REG_AHB_ERR);
        }
 
-       return ((ahb_err | pci_err) ? 1 : 0);
+       return (ahb_err | pci_err) ? 1 : 0;
 }
 
 static inline int ar71xx_pci_set_cfgaddr(struct pci_bus *bus,
@@ -384,6 +384,8 @@ int __init ar71xx_pcibios_init(void)
 
        ar71xx_pcicfg_base = ioremap_nocache(AR71XX_PCI_CFG_BASE,
                                                AR71XX_PCI_CFG_SIZE);
+       if (ar71xx_pcicfg_base == NULL)
+               return -ENOMEM;
 
        __raw_writel(PCI_WIN0_OFFS, ddr_base + AR71XX_DDR_REG_PCI_WIN0);
        __raw_writel(PCI_WIN1_OFFS, ddr_base + AR71XX_DDR_REG_PCI_WIN1);
This page took 0.023869 seconds and 4 git commands to generate.