diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2011-07-13 06:28:12 +0000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2011-07-25 12:13:16 +0100 |
commit | a0533fbf8778991f9a978656cff0d301322d37e2 (patch) | |
tree | e0bfe4922e7418f174231b45bd4f3951ab240da3 /drivers/gpu/drm/radeon/rs600.c | |
parent | 62cb70118c4efabb3c0a6f962168ddcad4344eef (diff) |
drm/radeon: Remove a bunch of useless _iomem casts
Just defining rdev->rmmio properly in the first place should do
the trick. In some cases, the cast were also complete dups as
the original variable was already of the right type.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/rs600.c')
-rw-r--r-- | drivers/gpu/drm/radeon/rs600.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/rs600.c b/drivers/gpu/drm/radeon/rs600.c index 6e3b11e5abbe..6779576e4084 100644 --- a/drivers/gpu/drm/radeon/rs600.c +++ b/drivers/gpu/drm/radeon/rs600.c @@ -530,7 +530,7 @@ int rs600_gart_set_page(struct radeon_device *rdev, int i, uint64_t addr) addr = addr & 0xFFFFFFFFFFFFF000ULL; addr |= R600_PTE_VALID | R600_PTE_SYSTEM | R600_PTE_SNOOPED; addr |= R600_PTE_READABLE | R600_PTE_WRITEABLE; - writeq(addr, ((void __iomem *)ptr) + (i * 8)); + writeq(addr, ptr + (i * 8)); return 0; } |