aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2008-04-28 05:15:13 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-04-28 11:58:38 -0400
commitbc3bf466e4a0a53d5c78561594c9cb4225bbb481 (patch)
tree5a6a5fb136ee0f36cbe5aca9de7a1ec9aad24064 /drivers/video
parentb0313f89672eddf0188dac96bb8f83135510a45c (diff)
radeonfb: drop redundant RTRACE macro
RTRACE() does exactly the same thing as the standard pr_debug() call, so just use the latter. Signed-off-by: Jean Delvare <khali@linux-fr.org> Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: "Antonino A. Daplas" <adaplas@pol.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/aty/radeon_base.c34
-rw-r--r--drivers/video/aty/radeon_i2c.c8
-rw-r--r--drivers/video/aty/radeon_monitor.c54
-rw-r--r--drivers/video/aty/radeonfb.h10
4 files changed, 48 insertions, 58 deletions
diff --git a/drivers/video/aty/radeon_base.c b/drivers/video/aty/radeon_base.c
index 10f32c83c96a..72cd0d2f14ec 100644
--- a/drivers/video/aty/radeon_base.c
+++ b/drivers/video/aty/radeon_base.c
@@ -1490,7 +1490,7 @@ static void radeon_calc_pll_regs(struct radeonfb_info *rinfo, struct radeon_regs
1490 freq = rinfo->pll.ppll_max; 1490 freq = rinfo->pll.ppll_max;
1491 if (freq*12 < rinfo->pll.ppll_min) 1491 if (freq*12 < rinfo->pll.ppll_min)
1492 freq = rinfo->pll.ppll_min / 12; 1492 freq = rinfo->pll.ppll_min / 12;
1493 RTRACE("freq = %lu, PLL min = %u, PLL max = %u\n", 1493 pr_debug("freq = %lu, PLL min = %u, PLL max = %u\n",
1494 freq, rinfo->pll.ppll_min, rinfo->pll.ppll_max); 1494 freq, rinfo->pll.ppll_min, rinfo->pll.ppll_max);
1495 1495
1496 for (post_div = &post_divs[0]; post_div->divider; ++post_div) { 1496 for (post_div = &post_divs[0]; post_div->divider; ++post_div) {
@@ -1511,7 +1511,7 @@ static void radeon_calc_pll_regs(struct radeonfb_info *rinfo, struct radeon_regs
1511 post_div = &post_divs[post_div->bitvalue]; 1511 post_div = &post_divs[post_div->bitvalue];
1512 pll_output_freq = post_div->divider * freq; 1512 pll_output_freq = post_div->divider * freq;
1513 } 1513 }
1514 RTRACE("ref_div = %d, ref_clk = %d, output_freq = %d\n", 1514 pr_debug("ref_div = %d, ref_clk = %d, output_freq = %d\n",
1515 rinfo->pll.ref_div, rinfo->pll.ref_clk, 1515 rinfo->pll.ref_div, rinfo->pll.ref_clk,
1516 pll_output_freq); 1516 pll_output_freq);
1517 1517
@@ -1521,7 +1521,7 @@ static void radeon_calc_pll_regs(struct radeonfb_info *rinfo, struct radeon_regs
1521 post_div = &post_divs[post_div->bitvalue]; 1521 post_div = &post_divs[post_div->bitvalue];
1522 pll_output_freq = post_div->divider * freq; 1522 pll_output_freq = post_div->divider * freq;
1523 } 1523 }
1524 RTRACE("ref_div = %d, ref_clk = %d, output_freq = %d\n", 1524 pr_debug("ref_div = %d, ref_clk = %d, output_freq = %d\n",
1525 rinfo->pll.ref_div, rinfo->pll.ref_clk, 1525 rinfo->pll.ref_div, rinfo->pll.ref_clk,
1526 pll_output_freq); 1526 pll_output_freq);
1527 1527
@@ -1530,9 +1530,9 @@ static void radeon_calc_pll_regs(struct radeonfb_info *rinfo, struct radeon_regs
1530 regs->ppll_ref_div = rinfo->pll.ref_div; 1530 regs->ppll_ref_div = rinfo->pll.ref_div;
1531 regs->ppll_div_3 = fb_div | (post_div->bitvalue << 16); 1531 regs->ppll_div_3 = fb_div | (post_div->bitvalue << 16);
1532 1532
1533 RTRACE("post div = 0x%x\n", post_div->bitvalue); 1533 pr_debug("post div = 0x%x\n", post_div->bitvalue);
1534 RTRACE("fb_div = 0x%x\n", fb_div); 1534 pr_debug("fb_div = 0x%x\n", fb_div);
1535 RTRACE("ppll_div_3 = 0x%x\n", regs->ppll_div_3); 1535 pr_debug("ppll_div_3 = 0x%x\n", regs->ppll_div_3);
1536} 1536}
1537 1537
1538static int radeonfb_set_par(struct fb_info *info) 1538static int radeonfb_set_par(struct fb_info *info)
@@ -1604,9 +1604,9 @@ static int radeonfb_set_par(struct fb_info *info)
1604 dotClock = 1000000000 / pixClock; 1604 dotClock = 1000000000 / pixClock;
1605 freq = dotClock / 10; /* x100 */ 1605 freq = dotClock / 10; /* x100 */
1606 1606
1607 RTRACE("hStart = %d, hEnd = %d, hTotal = %d\n", 1607 pr_debug("hStart = %d, hEnd = %d, hTotal = %d\n",
1608 hSyncStart, hSyncEnd, hTotal); 1608 hSyncStart, hSyncEnd, hTotal);
1609 RTRACE("vStart = %d, vEnd = %d, vTotal = %d\n", 1609 pr_debug("vStart = %d, vEnd = %d, vTotal = %d\n",
1610 vSyncStart, vSyncEnd, vTotal); 1610 vSyncStart, vSyncEnd, vTotal);
1611 1611
1612 hsync_wid = (hSyncEnd - hSyncStart) / 8; 1612 hsync_wid = (hSyncEnd - hSyncStart) / 8;
@@ -1715,16 +1715,16 @@ static int radeonfb_set_par(struct fb_info *info)
1715 newmode->surf_info[i] = 0; 1715 newmode->surf_info[i] = 0;
1716 } 1716 }
1717 1717
1718 RTRACE("h_total_disp = 0x%x\t hsync_strt_wid = 0x%x\n", 1718 pr_debug("h_total_disp = 0x%x\t hsync_strt_wid = 0x%x\n",
1719 newmode->crtc_h_total_disp, newmode->crtc_h_sync_strt_wid); 1719 newmode->crtc_h_total_disp, newmode->crtc_h_sync_strt_wid);
1720 RTRACE("v_total_disp = 0x%x\t vsync_strt_wid = 0x%x\n", 1720 pr_debug("v_total_disp = 0x%x\t vsync_strt_wid = 0x%x\n",
1721 newmode->crtc_v_total_disp, newmode->crtc_v_sync_strt_wid); 1721 newmode->crtc_v_total_disp, newmode->crtc_v_sync_strt_wid);
1722 1722
1723 rinfo->bpp = mode->bits_per_pixel; 1723 rinfo->bpp = mode->bits_per_pixel;
1724 rinfo->depth = depth; 1724 rinfo->depth = depth;
1725 1725
1726 RTRACE("pixclock = %lu\n", (unsigned long)pixClock); 1726 pr_debug("pixclock = %lu\n", (unsigned long)pixClock);
1727 RTRACE("freq = %lu\n", (unsigned long)freq); 1727 pr_debug("freq = %lu\n", (unsigned long)freq);
1728 1728
1729 /* We use PPLL_DIV_3 */ 1729 /* We use PPLL_DIV_3 */
1730 newmode->clk_cntl_index = 0x300; 1730 newmode->clk_cntl_index = 0x300;
@@ -1988,7 +1988,7 @@ static void fixup_memory_mappings(struct radeonfb_info *rinfo)
1988 if (rinfo->has_CRTC2) 1988 if (rinfo->has_CRTC2)
1989 OUTREG(CRTC2_GEN_CNTL, save_crtc2_gen_cntl); 1989 OUTREG(CRTC2_GEN_CNTL, save_crtc2_gen_cntl);
1990 1990
1991 RTRACE("aper_base: %08x MC_FB_LOC to: %08x, MC_AGP_LOC to: %08x\n", 1991 pr_debug("aper_base: %08x MC_FB_LOC to: %08x, MC_AGP_LOC to: %08x\n",
1992 aper_base, 1992 aper_base,
1993 ((aper_base + aper_size - 1) & 0xffff0000) | (aper_base >> 16), 1993 ((aper_base + aper_size - 1) & 0xffff0000) | (aper_base >> 16),
1994 0xffff0000 | (agp_base >> 16)); 1994 0xffff0000 | (agp_base >> 16));
@@ -2085,7 +2085,7 @@ static void radeon_identify_vram(struct radeonfb_info *rinfo)
2085 * ToDo: identify these cases 2085 * ToDo: identify these cases
2086 */ 2086 */
2087 2087
2088 RTRACE("radeonfb (%s): Found %ldk of %s %d bits wide videoram\n", 2088 pr_debug("radeonfb (%s): Found %ldk of %s %d bits wide videoram\n",
2089 pci_name(rinfo->pdev), 2089 pci_name(rinfo->pdev),
2090 rinfo->video_ram / 1024, 2090 rinfo->video_ram / 1024,
2091 rinfo->vram_ddr ? "DDR" : "SDRAM", 2091 rinfo->vram_ddr ? "DDR" : "SDRAM",
@@ -2162,7 +2162,7 @@ static int __devinit radeonfb_pci_register (struct pci_dev *pdev,
2162 int ret; 2162 int ret;
2163 unsigned char c1, c2; 2163 unsigned char c1, c2;
2164 2164
2165 RTRACE("radeonfb_pci_register BEGIN\n"); 2165 pr_debug("radeonfb_pci_register BEGIN\n");
2166 2166
2167 /* Enable device in PCI config */ 2167 /* Enable device in PCI config */
2168 ret = pci_enable_device(pdev); 2168 ret = pci_enable_device(pdev);
@@ -2287,7 +2287,7 @@ static int __devinit radeonfb_pci_register (struct pci_dev *pdev,
2287 goto err_unmap_rom; 2287 goto err_unmap_rom;
2288 } 2288 }
2289 2289
2290 RTRACE("radeonfb (%s): mapped %ldk videoram\n", pci_name(rinfo->pdev), 2290 pr_debug("radeonfb (%s): mapped %ldk videoram\n", pci_name(rinfo->pdev),
2291 rinfo->mapped_vram/1024); 2291 rinfo->mapped_vram/1024);
2292 2292
2293 /* 2293 /*
@@ -2382,7 +2382,7 @@ static int __devinit radeonfb_pci_register (struct pci_dev *pdev,
2382 2382
2383 if (rinfo->bios_seg) 2383 if (rinfo->bios_seg)
2384 radeon_unmap_ROM(rinfo, pdev); 2384 radeon_unmap_ROM(rinfo, pdev);
2385 RTRACE("radeonfb_pci_register END\n"); 2385 pr_debug("radeonfb_pci_register END\n");
2386 2386
2387 return 0; 2387 return 0;
2388err_unmap_fb: 2388err_unmap_fb:
diff --git a/drivers/video/aty/radeon_i2c.c b/drivers/video/aty/radeon_i2c.c
index 5254c7627a5a..b8e21da8f8ce 100644
--- a/drivers/video/aty/radeon_i2c.c
+++ b/drivers/video/aty/radeon_i2c.c
@@ -149,21 +149,21 @@ int radeon_probe_i2c_connector(struct radeonfb_info *rinfo, int conn,
149 if (out_edid) 149 if (out_edid)
150 *out_edid = edid; 150 *out_edid = edid;
151 if (!edid) { 151 if (!edid) {
152 RTRACE("radeonfb: I2C (port %d) ... not found\n", conn); 152 pr_debug("radeonfb: I2C (port %d) ... not found\n", conn);
153 return MT_NONE; 153 return MT_NONE;
154 } 154 }
155 if (edid[0x14] & 0x80) { 155 if (edid[0x14] & 0x80) {
156 /* Fix detection using BIOS tables */ 156 /* Fix detection using BIOS tables */
157 if (rinfo->is_mobility /*&& conn == ddc_dvi*/ && 157 if (rinfo->is_mobility /*&& conn == ddc_dvi*/ &&
158 (INREG(LVDS_GEN_CNTL) & LVDS_ON)) { 158 (INREG(LVDS_GEN_CNTL) & LVDS_ON)) {
159 RTRACE("radeonfb: I2C (port %d) ... found LVDS panel\n", conn); 159 pr_debug("radeonfb: I2C (port %d) ... found LVDS panel\n", conn);
160 return MT_LCD; 160 return MT_LCD;
161 } else { 161 } else {
162 RTRACE("radeonfb: I2C (port %d) ... found TMDS panel\n", conn); 162 pr_debug("radeonfb: I2C (port %d) ... found TMDS panel\n", conn);
163 return MT_DFP; 163 return MT_DFP;
164 } 164 }
165 } 165 }
166 RTRACE("radeonfb: I2C (port %d) ... found CRT display\n", conn); 166 pr_debug("radeonfb: I2C (port %d) ... found CRT display\n", conn);
167 return MT_CRT; 167 return MT_CRT;
168} 168}
169 169
diff --git a/drivers/video/aty/radeon_monitor.c b/drivers/video/aty/radeon_monitor.c
index 4f756888dcd3..b4d4b88afc09 100644
--- a/drivers/video/aty/radeon_monitor.c
+++ b/drivers/video/aty/radeon_monitor.c
@@ -69,11 +69,11 @@ static int __devinit radeon_parse_montype_prop(struct device_node *dp, u8 **out_
69 u8 *tmp; 69 u8 *tmp;
70 int i, mt = MT_NONE; 70 int i, mt = MT_NONE;
71 71
72 RTRACE("analyzing OF properties...\n"); 72 pr_debug("analyzing OF properties...\n");
73 pmt = of_get_property(dp, "display-type", NULL); 73 pmt = of_get_property(dp, "display-type", NULL);
74 if (!pmt) 74 if (!pmt)
75 return MT_NONE; 75 return MT_NONE;
76 RTRACE("display-type: %s\n", pmt); 76 pr_debug("display-type: %s\n", pmt);
77 /* OF says "LCD" for DFP as well, we discriminate from the caller of this 77 /* OF says "LCD" for DFP as well, we discriminate from the caller of this
78 * function 78 * function
79 */ 79 */
@@ -117,7 +117,7 @@ static int __devinit radeon_probe_OF_head(struct radeonfb_info *rinfo, int head_
117{ 117{
118 struct device_node *dp; 118 struct device_node *dp;
119 119
120 RTRACE("radeon_probe_OF_head\n"); 120 pr_debug("radeon_probe_OF_head\n");
121 121
122 dp = rinfo->of_node; 122 dp = rinfo->of_node;
123 while (dp == NULL) 123 while (dp == NULL)
@@ -135,7 +135,7 @@ static int __devinit radeon_probe_OF_head(struct radeonfb_info *rinfo, int head_
135 if (!pname) 135 if (!pname)
136 return MT_NONE; 136 return MT_NONE;
137 len = strlen(pname); 137 len = strlen(pname);
138 RTRACE("head: %s (letter: %c, head_no: %d)\n", 138 pr_debug("head: %s (letter: %c, head_no: %d)\n",
139 pname, pname[len-1], head_no); 139 pname, pname[len-1], head_no);
140 if (pname[len-1] == 'A' && head_no == 0) { 140 if (pname[len-1] == 'A' && head_no == 0) {
141 int mt = radeon_parse_montype_prop(dp, out_EDID, 0); 141 int mt = radeon_parse_montype_prop(dp, out_EDID, 0);
@@ -185,7 +185,7 @@ static int __devinit radeon_get_panel_info_BIOS(struct radeonfb_info *rinfo)
185 rinfo->panel_info.xres, rinfo->panel_info.yres); 185 rinfo->panel_info.xres, rinfo->panel_info.yres);
186 186
187 rinfo->panel_info.pwr_delay = BIOS_IN16(tmp + 44); 187 rinfo->panel_info.pwr_delay = BIOS_IN16(tmp + 44);
188 RTRACE("BIOS provided panel power delay: %d\n", rinfo->panel_info.pwr_delay); 188 pr_debug("BIOS provided panel power delay: %d\n", rinfo->panel_info.pwr_delay);
189 if (rinfo->panel_info.pwr_delay > 2000 || rinfo->panel_info.pwr_delay <= 0) 189 if (rinfo->panel_info.pwr_delay > 2000 || rinfo->panel_info.pwr_delay <= 0)
190 rinfo->panel_info.pwr_delay = 2000; 190 rinfo->panel_info.pwr_delay = 2000;
191 191
@@ -199,16 +199,16 @@ static int __devinit radeon_get_panel_info_BIOS(struct radeonfb_info *rinfo)
199 rinfo->panel_info.fbk_divider > 3) { 199 rinfo->panel_info.fbk_divider > 3) {
200 rinfo->panel_info.use_bios_dividers = 1; 200 rinfo->panel_info.use_bios_dividers = 1;
201 printk(KERN_INFO "radeondb: BIOS provided dividers will be used\n"); 201 printk(KERN_INFO "radeondb: BIOS provided dividers will be used\n");
202 RTRACE("ref_divider = %x\n", rinfo->panel_info.ref_divider); 202 pr_debug("ref_divider = %x\n", rinfo->panel_info.ref_divider);
203 RTRACE("post_divider = %x\n", rinfo->panel_info.post_divider); 203 pr_debug("post_divider = %x\n", rinfo->panel_info.post_divider);
204 RTRACE("fbk_divider = %x\n", rinfo->panel_info.fbk_divider); 204 pr_debug("fbk_divider = %x\n", rinfo->panel_info.fbk_divider);
205 } 205 }
206 RTRACE("Scanning BIOS table ...\n"); 206 pr_debug("Scanning BIOS table ...\n");
207 for(i=0; i<32; i++) { 207 for(i=0; i<32; i++) {
208 tmp0 = BIOS_IN16(tmp+64+i*2); 208 tmp0 = BIOS_IN16(tmp+64+i*2);
209 if (tmp0 == 0) 209 if (tmp0 == 0)
210 break; 210 break;
211 RTRACE(" %d x %d\n", BIOS_IN16(tmp0), BIOS_IN16(tmp0+2)); 211 pr_debug(" %d x %d\n", BIOS_IN16(tmp0), BIOS_IN16(tmp0+2));
212 if ((BIOS_IN16(tmp0) == rinfo->panel_info.xres) && 212 if ((BIOS_IN16(tmp0) == rinfo->panel_info.xres) &&
213 (BIOS_IN16(tmp0+2) == rinfo->panel_info.yres)) { 213 (BIOS_IN16(tmp0+2) == rinfo->panel_info.yres)) {
214 rinfo->panel_info.hblank = (BIOS_IN16(tmp0+17) - BIOS_IN16(tmp0+19)) * 8; 214 rinfo->panel_info.hblank = (BIOS_IN16(tmp0+17) - BIOS_IN16(tmp0+19)) * 8;
@@ -227,19 +227,19 @@ static int __devinit radeon_get_panel_info_BIOS(struct radeonfb_info *rinfo)
227 /* Mark panel infos valid */ 227 /* Mark panel infos valid */
228 rinfo->panel_info.valid = 1; 228 rinfo->panel_info.valid = 1;
229 229
230 RTRACE("Found panel in BIOS table:\n"); 230 pr_debug("Found panel in BIOS table:\n");
231 RTRACE(" hblank: %d\n", rinfo->panel_info.hblank); 231 pr_debug(" hblank: %d\n", rinfo->panel_info.hblank);
232 RTRACE(" hOver_plus: %d\n", rinfo->panel_info.hOver_plus); 232 pr_debug(" hOver_plus: %d\n", rinfo->panel_info.hOver_plus);
233 RTRACE(" hSync_width: %d\n", rinfo->panel_info.hSync_width); 233 pr_debug(" hSync_width: %d\n", rinfo->panel_info.hSync_width);
234 RTRACE(" vblank: %d\n", rinfo->panel_info.vblank); 234 pr_debug(" vblank: %d\n", rinfo->panel_info.vblank);
235 RTRACE(" vOver_plus: %d\n", rinfo->panel_info.vOver_plus); 235 pr_debug(" vOver_plus: %d\n", rinfo->panel_info.vOver_plus);
236 RTRACE(" vSync_width: %d\n", rinfo->panel_info.vSync_width); 236 pr_debug(" vSync_width: %d\n", rinfo->panel_info.vSync_width);
237 RTRACE(" clock: %d\n", rinfo->panel_info.clock); 237 pr_debug(" clock: %d\n", rinfo->panel_info.clock);
238 238
239 return 1; 239 return 1;
240 } 240 }
241 } 241 }
242 RTRACE("Didn't find panel in BIOS table !\n"); 242 pr_debug("Didn't find panel in BIOS table !\n");
243 243
244 return 0; 244 return 0;
245} 245}
@@ -271,18 +271,18 @@ static void __devinit radeon_parse_connector_info(struct radeonfb_info *rinfo)
271 * DEBUG is enabled 271 * DEBUG is enabled
272 */ 272 */
273 chips = BIOS_IN8(offset++) >> 4; 273 chips = BIOS_IN8(offset++) >> 4;
274 RTRACE("%d chips in connector info\n", chips); 274 pr_debug("%d chips in connector info\n", chips);
275 for (i = 0; i < chips; i++) { 275 for (i = 0; i < chips; i++) {
276 tmp = BIOS_IN8(offset++); 276 tmp = BIOS_IN8(offset++);
277 connectors = tmp & 0x0f; 277 connectors = tmp & 0x0f;
278 RTRACE(" - chip %d has %d connectors\n", tmp >> 4, connectors); 278 pr_debug(" - chip %d has %d connectors\n", tmp >> 4, connectors);
279 for (conn = 0; ; conn++) { 279 for (conn = 0; ; conn++) {
280 tmp = BIOS_IN16(offset); 280 tmp = BIOS_IN16(offset);
281 if (tmp == 0) 281 if (tmp == 0)
282 break; 282 break;
283 offset += 2; 283 offset += 2;
284 type = (tmp >> 12) & 0x0f; 284 type = (tmp >> 12) & 0x0f;
285 RTRACE(" * connector %d of type %d (%s) : %04x\n", 285 pr_debug(" * connector %d of type %d (%s) : %04x\n",
286 conn, type, __conn_type_table[type], tmp); 286 conn, type, __conn_type_table[type], tmp);
287 } 287 }
288 } 288 }
@@ -449,7 +449,7 @@ void __devinit radeon_probe_screens(struct radeonfb_info *rinfo,
449 * a layout for each card ? 449 * a layout for each card ?
450 */ 450 */
451 451
452 RTRACE("Using specified monitor layout: %s", monitor_layout); 452 pr_debug("Using specified monitor layout: %s", monitor_layout);
453#ifdef CONFIG_FB_RADEON_I2C 453#ifdef CONFIG_FB_RADEON_I2C
454 if (!ignore_edid) { 454 if (!ignore_edid) {
455 if (rinfo->mon1_type != MT_NONE) 455 if (rinfo->mon1_type != MT_NONE)
@@ -479,7 +479,7 @@ void __devinit radeon_probe_screens(struct radeonfb_info *rinfo,
479 * Auto-detecting display type (well... trying to ...) 479 * Auto-detecting display type (well... trying to ...)
480 */ 480 */
481 481
482 RTRACE("Starting monitor auto detection...\n"); 482 pr_debug("Starting monitor auto detection...\n");
483 483
484#if defined(DEBUG) && defined(CONFIG_FB_RADEON_I2C) 484#if defined(DEBUG) && defined(CONFIG_FB_RADEON_I2C)
485 { 485 {
@@ -756,7 +756,7 @@ void __devinit radeon_check_modes(struct radeonfb_info *rinfo, const char *mode_
756 if (!rinfo->panel_info.use_bios_dividers && rinfo->mon1_type != MT_CRT 756 if (!rinfo->panel_info.use_bios_dividers && rinfo->mon1_type != MT_CRT
757 && rinfo->mon1_EDID) { 757 && rinfo->mon1_EDID) {
758 struct fb_var_screeninfo var; 758 struct fb_var_screeninfo var;
759 RTRACE("Parsing EDID data for panel info\n"); 759 pr_debug("Parsing EDID data for panel info\n");
760 if (fb_parse_edid(rinfo->mon1_EDID, &var) == 0) { 760 if (fb_parse_edid(rinfo->mon1_EDID, &var) == 0) {
761 if (var.xres >= rinfo->panel_info.xres && 761 if (var.xres >= rinfo->panel_info.xres &&
762 var.yres >= rinfo->panel_info.yres) 762 var.yres >= rinfo->panel_info.yres)
@@ -776,7 +776,7 @@ void __devinit radeon_check_modes(struct radeonfb_info *rinfo, const char *mode_
776 if (rinfo->mon1_type != MT_CRT && rinfo->panel_info.valid) { 776 if (rinfo->mon1_type != MT_CRT && rinfo->panel_info.valid) {
777 struct fb_var_screeninfo *var = &info->var; 777 struct fb_var_screeninfo *var = &info->var;
778 778
779 RTRACE("Setting up default mode based on panel info\n"); 779 pr_debug("Setting up default mode based on panel info\n");
780 var->xres = rinfo->panel_info.xres; 780 var->xres = rinfo->panel_info.xres;
781 var->yres = rinfo->panel_info.yres; 781 var->yres = rinfo->panel_info.yres;
782 var->xres_virtual = rinfo->panel_info.xres; 782 var->xres_virtual = rinfo->panel_info.xres;
@@ -824,7 +824,7 @@ void __devinit radeon_check_modes(struct radeonfb_info *rinfo, const char *mode_
824 int dbsize; 824 int dbsize;
825 char modename[32]; 825 char modename[32];
826 826
827 RTRACE("Guessing panel info...\n"); 827 pr_debug("Guessing panel info...\n");
828 if (rinfo->panel_info.xres == 0 || rinfo->panel_info.yres == 0) { 828 if (rinfo->panel_info.xres == 0 || rinfo->panel_info.yres == 0) {
829 u32 tmp = INREG(FP_HORZ_STRETCH) & HORZ_PANEL_SIZE; 829 u32 tmp = INREG(FP_HORZ_STRETCH) & HORZ_PANEL_SIZE;
830 rinfo->panel_info.xres = ((tmp >> HORZ_PANEL_SHIFT) + 1) * 8; 830 rinfo->panel_info.xres = ((tmp >> HORZ_PANEL_SHIFT) + 1) * 8;
diff --git a/drivers/video/aty/radeonfb.h b/drivers/video/aty/radeonfb.h
index 8215ca0555c2..c347e38cd0b0 100644
--- a/drivers/video/aty/radeonfb.h
+++ b/drivers/video/aty/radeonfb.h
@@ -369,16 +369,6 @@ struct radeonfb_info {
369 369
370 370
371/* 371/*
372 * Debugging stuffs
373 */
374#ifdef DEBUG
375#define RTRACE printk
376#else
377#define RTRACE if(0) printk
378#endif
379
380
381/*
382 * IO macros 372 * IO macros
383 */ 373 */
384 374