agp/intel: Use pci_bus_address() to get GTTADR bus address
authorBjorn Helgaas <bhelgaas@google.com>
Sat, 4 Jan 2014 01:29:00 +0000 (18:29 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 7 Jan 2014 18:37:12 +0000 (11:37 -0700)
commitb5e350f919acb8ef6961bc1b62e395f53cea123a
treeef77989abe076f705ba5d27f87e2d9e4e6cfccaa
parent5ef6d8f49533bb28a90ae9eec177ffd1ade54267
agp/intel: Use pci_bus_address() to get GTTADR bus address

Per the Intel 915G/915GV/... Chipset spec (document number 301467-005),
GTTADR is a standard PCI BAR.

The PCI core reads GTTADR at enumeration-time.  Use pci_bus_address()
instead of reading it again in the driver.  This works correctly for both
32-bit and 64-bit BARs.  The spec above only mentions 32-bit GTTADR, but we
should still use the standard interface.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/char/agp/intel-agp.h
drivers/char/agp/intel-gtt.c