diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2006-07-12 01:40:40 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-07-31 01:55:05 -0400 |
commit | b04e3dd4ab4c7763a4ca8f751caaf69ce8dabbba (patch) | |
tree | 0224891d9ea4bfa4b1b8245d498cf2fa81737884 /drivers/video/aty/radeon_base.c | |
parent | 018a3d1db7cdb6127656c1622ee1d2302e16436d (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_base.c')
-rw-r--r-- | drivers/video/aty/radeon_base.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/video/aty/radeon_base.c b/drivers/video/aty/radeon_base.c index 51b78f8de949..60c37add2579 100644 --- a/drivers/video/aty/radeon_base.c +++ b/drivers/video/aty/radeon_base.c | |||
@@ -412,11 +412,11 @@ static int __devinit radeon_find_mem_vbios(struct radeonfb_info *rinfo) | |||
412 | static int __devinit radeon_read_xtal_OF (struct radeonfb_info *rinfo) | 412 | static int __devinit radeon_read_xtal_OF (struct radeonfb_info *rinfo) |
413 | { | 413 | { |
414 | struct device_node *dp = rinfo->of_node; | 414 | struct device_node *dp = rinfo->of_node; |
415 | u32 *val; | 415 | const u32 *val; |
416 | 416 | ||
417 | if (dp == NULL) | 417 | if (dp == NULL) |
418 | return -ENODEV; | 418 | return -ENODEV; |
419 | val = (u32 *) get_property(dp, "ATY,RefCLK", NULL); | 419 | val = get_property(dp, "ATY,RefCLK", NULL); |
420 | if (!val || !*val) { | 420 | if (!val || !*val) { |
421 | printk(KERN_WARNING "radeonfb: No ATY,RefCLK property !\n"); | 421 | printk(KERN_WARNING "radeonfb: No ATY,RefCLK property !\n"); |
422 | return -EINVAL; | 422 | return -EINVAL; |
@@ -424,11 +424,11 @@ static int __devinit radeon_read_xtal_OF (struct radeonfb_info *rinfo) | |||
424 | 424 | ||
425 | rinfo->pll.ref_clk = (*val) / 10; | 425 | rinfo->pll.ref_clk = (*val) / 10; |
426 | 426 | ||
427 | val = (u32 *) get_property(dp, "ATY,SCLK", NULL); | 427 | val = get_property(dp, "ATY,SCLK", NULL); |
428 | if (val && *val) | 428 | if (val && *val) |
429 | rinfo->pll.sclk = (*val) / 10; | 429 | rinfo->pll.sclk = (*val) / 10; |
430 | 430 | ||
431 | val = (u32 *) get_property(dp, "ATY,MCLK", NULL); | 431 | val = get_property(dp, "ATY,MCLK", NULL); |
432 | if (val && *val) | 432 | if (val && *val) |
433 | rinfo->pll.mclk = (*val) / 10; | 433 | rinfo->pll.mclk = (*val) / 10; |
434 | 434 | ||