Commit cf97bb26 authored by Dave Jones's avatar Dave Jones

Merge delerium.codemonkey.org.uk:/mnt/nfs/sepia/bar/src/kernel/2.6/trees/bk-linus

into delerium.codemonkey.org.uk:/mnt/nfs/sepia/bar/src/kernel/2.6/trees/agpgart
parents a9c055ad bd88c79f
......@@ -279,7 +279,7 @@ static int __devinit aperture_valid(u64 aper, u32 size)
Maybe better to use pci_assign_resource/pci_enable_device instead trusting
the bridges? */
if (!not_first_call && request_mem_region(aper, size, "aperture") < 0) {
if (!not_first_call && !request_mem_region(aper, size, "aperture")) {
printk(KERN_ERR PFX "Aperture conflicts with PCI mapping.\n");
return 0;
}
......@@ -357,11 +357,18 @@ static __devinit int cache_nbs (struct pci_dev *pdev, u32 cap_ptr)
}
hammers[i++] = loop_dev;
nr_garts = i;
#ifdef CONFIG_SMP
if (i == MAX_HAMMER_GARTS) {
printk(KERN_INFO PFX "Too many northbridges for AGP\n");
return -1;
}
#else
/* Uniprocessor case, return after finding first bridge.
(There may be more, but in UP, we don't care). */
return 0;
#endif
}
return i == 0 ? -1 : 0;
}
......
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