drm/radeon/kms: mmio base/size should be resource_size_t.
authorDave Airlie <airlied@redhat.com>
Mon, 29 Jun 2009 08:29:12 +0000 (18:29 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 15 Jul 2009 07:13:03 +0000 (17:13 +1000)
Unsigned long is incorrect for 64-bit resources on 32-bit hw.

Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon.h

index d61f2fc61df53e959b083ce5f07aa2a3b6771d27..e7662ba9abfb41233ecf82786e0ad042bb643d54 100644 (file)
@@ -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;