diff options
Diffstat (limited to 'drivers/char/agp/efficeon-agp.c')
-rw-r--r-- | drivers/char/agp/efficeon-agp.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/char/agp/efficeon-agp.c b/drivers/char/agp/efficeon-agp.c index 6974d5032053..533cb6d229b8 100644 --- a/drivers/char/agp/efficeon-agp.c +++ b/drivers/char/agp/efficeon-agp.c | |||
@@ -128,7 +128,6 @@ static void efficeon_cleanup(void) | |||
128 | 128 | ||
129 | static int efficeon_configure(void) | 129 | static int efficeon_configure(void) |
130 | { | 130 | { |
131 | u32 temp; | ||
132 | u16 temp2; | 131 | u16 temp2; |
133 | struct aper_size_info_lvl2 *current_size; | 132 | struct aper_size_info_lvl2 *current_size; |
134 | 133 | ||
@@ -141,8 +140,8 @@ static int efficeon_configure(void) | |||
141 | current_size->size_value); | 140 | current_size->size_value); |
142 | 141 | ||
143 | /* address to map to */ | 142 | /* address to map to */ |
144 | pci_read_config_dword(agp_bridge->dev, AGP_APBASE, &temp); | 143 | agp_bridge->gart_bus_addr = pci_bus_address(agp_bridge->dev, |
145 | agp_bridge->gart_bus_addr = (temp & PCI_BASE_ADDRESS_MEM_MASK); | 144 | AGP_APERTURE_BAR); |
146 | 145 | ||
147 | /* agpctrl */ | 146 | /* agpctrl */ |
148 | pci_write_config_dword(agp_bridge->dev, INTEL_AGPCTRL, 0x2280); | 147 | pci_write_config_dword(agp_bridge->dev, INTEL_AGPCTRL, 0x2280); |