aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/aty/radeon_base.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/aty/radeon_base.c')
-rw-r--r--drivers/video/aty/radeon_base.c8
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)
412static int __devinit radeon_read_xtal_OF (struct radeonfb_info *rinfo) 412static 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