diff options
Diffstat (limited to 'drivers/char/agp/intel-agp.c')
-rw-r--r-- | drivers/char/agp/intel-agp.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/char/agp/intel-agp.c b/drivers/char/agp/intel-agp.c index 4e455f03b4f0..49cf7e2df47a 100644 --- a/drivers/char/agp/intel-agp.c +++ b/drivers/char/agp/intel-agp.c | |||
@@ -124,13 +124,15 @@ static int intel_i810_configure(void) | |||
124 | 124 | ||
125 | current_size = A_SIZE_FIX(agp_bridge->current_size); | 125 | current_size = A_SIZE_FIX(agp_bridge->current_size); |
126 | 126 | ||
127 | pci_read_config_dword(intel_i810_private.i810_dev, I810_MMADDR, &temp); | ||
128 | temp &= 0xfff80000; | ||
129 | |||
130 | intel_i810_private.registers = ioremap(temp, 128 * 4096); | ||
131 | if (!intel_i810_private.registers) { | 127 | if (!intel_i810_private.registers) { |
132 | printk(KERN_ERR PFX "Unable to remap memory.\n"); | 128 | pci_read_config_dword(intel_i810_private.i810_dev, I810_MMADDR, &temp); |
133 | return -ENOMEM; | 129 | temp &= 0xfff80000; |
130 | |||
131 | intel_i810_private.registers = ioremap(temp, 128 * 4096); | ||
132 | if (!intel_i810_private.registers) { | ||
133 | printk(KERN_ERR PFX "Unable to remap memory.\n"); | ||
134 | return -ENOMEM; | ||
135 | } | ||
134 | } | 136 | } |
135 | 137 | ||
136 | if ((readl(intel_i810_private.registers+I810_DRAM_CTL) | 138 | if ((readl(intel_i810_private.registers+I810_DRAM_CTL) |