aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/aty/radeon_monitor.c
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2008-04-28 05:15:12 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-04-28 11:58:38 -0400
commitb0313f89672eddf0188dac96bb8f83135510a45c (patch)
treef3e926c582c4bf28276ffaa79e735a79c3cf899f /drivers/video/aty/radeon_monitor.c
parente7a18c9c86d14247b514157aae60326d45695476 (diff)
radeonfb: fix debug option
Fix CONFIG_FB_RADEON_DEBUG. DEBUG must be defined before including any kernel header, otherwise dev_dbg() resolves to a no-op. Also, when debugging is disabled, don't set DEBUG at all instead of setting it to 0, to comply with what the kernel headers expect. 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/aty/radeon_monitor.c')
-rw-r--r--drivers/video/aty/radeon_monitor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/aty/radeon_monitor.c b/drivers/video/aty/radeon_monitor.c
index 2030ed813429..4f756888dcd3 100644
--- a/drivers/video/aty/radeon_monitor.c
+++ b/drivers/video/aty/radeon_monitor.c
@@ -481,7 +481,7 @@ void __devinit radeon_probe_screens(struct radeonfb_info *rinfo,
481 481
482 RTRACE("Starting monitor auto detection...\n"); 482 RTRACE("Starting monitor auto detection...\n");
483 483
484#if DEBUG && defined(CONFIG_FB_RADEON_I2C) 484#if defined(DEBUG) && defined(CONFIG_FB_RADEON_I2C)
485 { 485 {
486 u8 *EDIDs[4] = { NULL, NULL, NULL, NULL }; 486 u8 *EDIDs[4] = { NULL, NULL, NULL, NULL };
487 int mon_types[4] = {MT_NONE, MT_NONE, MT_NONE, MT_NONE}; 487 int mon_types[4] = {MT_NONE, MT_NONE, MT_NONE, MT_NONE};