[AGPGART] intel_agp: fix G965 GTT size detect

On G965, I810_PGETBL_CTL is a mmio offset, but we wrongly take it
as pci config space offset in detecting GTT size. This one line patch
fixs this.

Signed-off-by: Wang Zhenyu <zhenyu.z.wang@intel.com>
Signed-off-by: Dave Jones <davej@redhat.com>

authored by Wang Zhenyu and committed by Dave Jones 52ea0718 4598af33

+1 -2
+1 -2
drivers/char/agp/intel-agp.c
··· 431 431 432 432 if (IS_I965) { 433 433 u32 pgetbl_ctl; 434 + pgetbl_ctl = readl(intel_i830_private.registers+I810_PGETBL_CTL); 434 435 435 - pci_read_config_dword(agp_bridge->dev, I810_PGETBL_CTL, 436 - &pgetbl_ctl); 437 436 /* The 965 has a field telling us the size of the GTT, 438 437 * which may be larger than what is necessary to map the 439 438 * aperture.