Commit 7bf53e0b authored by Dave Jones's avatar Dave Jones

[AGPGART] Check ioremap for failure in Serverworks GART driver.

Based on patch from Randy Dunlap.
parent c85f7117
......@@ -266,6 +266,10 @@ static int serverworks_configure(void)
pci_read_config_dword(agp_bridge->dev, serverworks_private.mm_addr_ofs, &temp);
temp = (temp & PCI_BASE_ADDRESS_MEM_MASK);
serverworks_private.registers = (volatile u8 *) ioremap(temp, 4096);
if (!serverworks_private.registers) {
printk (KERN_ERR PFX "Unable to ioremap() memory.\n");
return -ENOMEM;
}
OUTREG8(serverworks_private.registers, SVWRKS_GART_CACHE, 0x0a);
......
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