aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/aty/radeon_pm.c
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2006-07-12 01:40:40 -0400
committerPaul Mackerras <paulus@samba.org>2006-07-31 01:55:05 -0400
commitb04e3dd4ab4c7763a4ca8f751caaf69ce8dabbba (patch)
tree0224891d9ea4bfa4b1b8245d498cf2fa81737884 /drivers/video/aty/radeon_pm.c
parent018a3d1db7cdb6127656c1622ee1d2302e16436d (diff)
[POWERPC] video & agp: Constify & voidify get_property()
Now that get_property() returns a void *, there's no need to cast its return value. Also, treat the return value as const, so we can constify get_property later. powerpc-specific video & agp driver changes. Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'drivers/video/aty/radeon_pm.c')
-rw-r--r--drivers/video/aty/radeon_pm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/aty/radeon_pm.c b/drivers/video/aty/radeon_pm.c
index c7091761cef4..b9b9396d3bde 100644
--- a/drivers/video/aty/radeon_pm.c
+++ b/drivers/video/aty/radeon_pm.c
@@ -1167,7 +1167,7 @@ static void radeon_pm_full_reset_sdram(struct radeonfb_info *rinfo)
1167 0x21320032, 0xa1320032, 0x21320032, 0xffffffff, 1167 0x21320032, 0xa1320032, 0x21320032, 0xffffffff,
1168 0x31320032 }; 1168 0x31320032 };
1169 1169
1170 u32 *mrtable = default_mrtable; 1170 const u32 *mrtable = default_mrtable;
1171 int i, mrtable_size = ARRAY_SIZE(default_mrtable); 1171 int i, mrtable_size = ARRAY_SIZE(default_mrtable);
1172 1172
1173 mdelay(30); 1173 mdelay(30);
@@ -1186,7 +1186,7 @@ static void radeon_pm_full_reset_sdram(struct radeonfb_info *rinfo)
1186 if (rinfo->of_node != NULL) { 1186 if (rinfo->of_node != NULL) {
1187 int size; 1187 int size;
1188 1188
1189 mrtable = (u32 *)get_property(rinfo->of_node, "ATY,MRT", &size); 1189 mrtable = get_property(rinfo->of_node, "ATY,MRT", &size);
1190 if (mrtable) 1190 if (mrtable)
1191 mrtable_size = size >> 2; 1191 mrtable_size = size >> 2;
1192 else 1192 else