mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-24 00:14:05 +02:00
ar71xx: check returned value of ioremap in ar71xx_pcibios_setup
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20288 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
dc4e55fa64
commit
b1704a799d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user