commit | d68c5a271727e09ce4a26ea8b85cbb852e06650f | [log] [tgz] |
---|---|---|
author | Bjorn Helgaas <bhelgaas@google.com> | Mon Jan 06 15:21:16 2014 -0700 |
committer | Bjorn Helgaas <bhelgaas@google.com> | Tue Jan 07 11:36:35 2014 -0700 |
tree | 58f48c1f956a0a18f7dff57718ca19e0f4d2b6b1 | |
parent | e501b3d87f003dfad8fcbd0f55ae17ea52495a56 [diff] |
agp: Use pci_resource_start() to get CPU physical address for BAR amd_irongate_configure(), ati_configure(), and nvidia_configure() call ioremap() on an address read directly from a BAR. But a BAR contains a bus address, and ioremap() expects a CPU physical address. Use pci_resource_start() to obtain the physical address. Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>