Commit 2d11010b authored by Dave Jones's avatar Dave Jones

[AGPGART] Another missing ioremap() failure check.

Again, from Randy Dunlap
parent b7da9a08
...@@ -75,6 +75,10 @@ static int intel_i810_configure(void) ...@@ -75,6 +75,10 @@ static int intel_i810_configure(void)
temp &= 0xfff80000; temp &= 0xfff80000;
intel_i810_private.registers = (volatile u8 *) ioremap(temp, 128 * 4096); intel_i810_private.registers = (volatile u8 *) ioremap(temp, 128 * 4096);
if (!intel_i810_private.registers) {
printk(KERN_ERR PFX "Unable to remap memory.\n");
return -ENOMEM;
}
if ((INREG32(intel_i810_private.registers, I810_DRAM_CTL) if ((INREG32(intel_i810_private.registers, I810_DRAM_CTL)
& I810_DRAM_ROW_0) == I810_DRAM_ROW_0_SDRAM) { & I810_DRAM_ROW_0) == I810_DRAM_ROW_0_SDRAM) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment