ar71xx: check returned value of ioremap in ar71xx_pcibios_setup

SVN-Revision: 20288
owl
Gabor Juhos 2010-03-18 19:19:19 +00:00
parent 73f7a1c224
commit 18aa68d368
1 changed files with 2 additions and 0 deletions

View File

@ -384,6 +384,8 @@ int __init ar71xx_pcibios_init(void)
ar71xx_pcicfg_base = ioremap_nocache(AR71XX_PCI_CFG_BASE, ar71xx_pcicfg_base = ioremap_nocache(AR71XX_PCI_CFG_BASE,
AR71XX_PCI_CFG_SIZE); 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_WIN0_OFFS, ddr_base + AR71XX_DDR_REG_PCI_WIN0);
__raw_writel(PCI_WIN1_OFFS, ddr_base + AR71XX_DDR_REG_PCI_WIN1); __raw_writel(PCI_WIN1_OFFS, ddr_base + AR71XX_DDR_REG_PCI_WIN1);