Changeset 20288


Ignore:
Timestamp:
2010-03-18T20:19:19+01:00 (8 years ago)
Author:
juhosg
Message:

ar71xx: check returned value of ioremap in ar71xx_pcibios_setup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/files/arch/mips/pci/pci-ar71xx.c

    r20287 r20288  
    385385        ar71xx_pcicfg_base = ioremap_nocache(AR71XX_PCI_CFG_BASE, 
    386386                                                AR71XX_PCI_CFG_SIZE); 
     387        if (ar71xx_pcicfg_base == NULL) 
     388                return -ENOMEM; 
    387389 
    388390        __raw_writel(PCI_WIN0_OFFS, ddr_base + AR71XX_DDR_REG_PCI_WIN0); 
Note: See TracChangeset for help on using the changeset viewer.