diff options
author | Jordan Crouse <jcrouse@codeaurora.org> | 2010-05-27 15:40:24 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-05-31 20:07:24 -0400 |
commit | 01d73a6967f12fe6c4bbde1834a9fe662264a2eb (patch) | |
tree | 32e4a3171cd371dfc037af52e181e6c8454a961b /drivers/gpu/drm/radeon/rv770.c | |
parent | cf22f20ade30f8c03955324aaf27b1049e182600 (diff) |
drm: Remove drm_resource wrappers
Remove the drm_resource wrappers and directly use the
actual PCI and/or platform functions in their place.
[airlied: fixup nouveau properly to build]
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/rv770.c')
-rw-r--r-- | drivers/gpu/drm/radeon/rv770.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/radeon/rv770.c b/drivers/gpu/drm/radeon/rv770.c index 253f24aec031..5c7f0b97c6aa 100644 --- a/drivers/gpu/drm/radeon/rv770.c +++ b/drivers/gpu/drm/radeon/rv770.c | |||
@@ -908,8 +908,8 @@ int rv770_mc_init(struct radeon_device *rdev) | |||
908 | } | 908 | } |
909 | rdev->mc.vram_width = numchan * chansize; | 909 | rdev->mc.vram_width = numchan * chansize; |
910 | /* Could aper size report 0 ? */ | 910 | /* Could aper size report 0 ? */ |
911 | rdev->mc.aper_base = drm_get_resource_start(rdev->ddev, 0); | 911 | rdev->mc.aper_base = pci_resource_start(rdev->pdev, 0); |
912 | rdev->mc.aper_size = drm_get_resource_len(rdev->ddev, 0); | 912 | rdev->mc.aper_size = pci_resource_len(rdev->pdev, 0); |
913 | /* Setup GPU memory space */ | 913 | /* Setup GPU memory space */ |
914 | rdev->mc.mc_vram_size = RREG32(CONFIG_MEMSIZE); | 914 | rdev->mc.mc_vram_size = RREG32(CONFIG_MEMSIZE); |
915 | rdev->mc.real_vram_size = RREG32(CONFIG_MEMSIZE); | 915 | rdev->mc.real_vram_size = RREG32(CONFIG_MEMSIZE); |