summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2009-06-29 10:29:12 +0200
committerDave Airlie <airlied@redhat.com>2009-07-15 09:13:03 +0200
commit4c9bc75cbc6f2f447a38a123aa6e0605fab3cb7a (patch)
tree8bd7f7ef5ec852a39ff0295a95a091035fdb89a9
parentdrm/radeon/kms: fix some GART table entry bugs. (diff)
downloadlinux-4c9bc75cbc6f2f447a38a123aa6e0605fab3cb7a.tar.xz
linux-4c9bc75cbc6f2f447a38a123aa6e0605fab3cb7a.zip
drm/radeon/kms: mmio base/size should be resource_size_t.
Unsigned long is incorrect for 64-bit resources on 32-bit hw. Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r--drivers/gpu/drm/radeon/radeon.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h
index d61f2fc61df5..e7662ba9abfb 100644
--- a/drivers/gpu/drm/radeon/radeon.h
+++ b/drivers/gpu/drm/radeon/radeon.h
@@ -594,8 +594,8 @@ struct radeon_device {
struct radeon_object *fbdev_robj;
struct radeon_framebuffer *fbdev_rfb;
/* Register mmio */
- unsigned long rmmio_base;
- unsigned long rmmio_size;
+ resource_size_t rmmio_base;
+ resource_size_t rmmio_size;
void *rmmio;
radeon_rreg_t mm_rreg;
radeon_wreg_t mm_wreg;