aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2007-05-11 01:23:29 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-11 11:29:37 -0400
commit647f2e7aeef833272c17a5366680321c3def3f23 (patch)
tree2f3265f3e91e7b290f92f1f0d28354f2dbba5281 /drivers/video
parent213b8a9af600316902e08e010fbcd216e42e41f7 (diff)
nvidiafb: Enable debugging messages a Kconfig option
Let the user enable debugging messages in nvidiafb. Signed-off-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Antonino Daplas <adaplas@gmail.com> 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/Kconfig11
-rw-r--r--drivers/video/nvidia/nvidia.c1
2 files changed, 10 insertions, 2 deletions
diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig
index 13bcead8b1b4..eebcb708cff1 100644
--- a/drivers/video/Kconfig
+++ b/drivers/video/Kconfig
@@ -796,6 +796,15 @@ config FB_NVIDIA_I2C
796 independently validate video mode parameters, you should say Y 796 independently validate video mode parameters, you should say Y
797 here. 797 here.
798 798
799config FB_NVIDIA_DEBUG
800 bool "Lots of debug output"
801 depends on FB_NVIDIA
802 default n
803 help
804 Say Y here if you want the nVidia driver to output all sorts
805 of debugging information to provide to the maintainer when
806 something goes wrong.
807
799config FB_NVIDIA_BACKLIGHT 808config FB_NVIDIA_BACKLIGHT
800 bool "Support for backlight control" 809 bool "Support for backlight control"
801 depends on FB_NVIDIA 810 depends on FB_NVIDIA
@@ -835,7 +844,7 @@ config FB_RIVA_I2C
835 here. 844 here.
836 845
837config FB_RIVA_DEBUG 846config FB_RIVA_DEBUG
838 bool "Lots of debug output from Riva(nVidia) driver" 847 bool "Lots of debug output"
839 depends on FB_RIVA 848 depends on FB_RIVA
840 default n 849 default n
841 help 850 help
diff --git a/drivers/video/nvidia/nvidia.c b/drivers/video/nvidia/nvidia.c
index f85edf084da3..41f63658572f 100644
--- a/drivers/video/nvidia/nvidia.c
+++ b/drivers/video/nvidia/nvidia.c
@@ -37,7 +37,6 @@
37#include "nv_proto.h" 37#include "nv_proto.h"
38#include "nv_dma.h" 38#include "nv_dma.h"
39 39
40#undef CONFIG_FB_NVIDIA_DEBUG
41#ifdef CONFIG_FB_NVIDIA_DEBUG 40#ifdef CONFIG_FB_NVIDIA_DEBUG
42#define NVTRACE printk 41#define NVTRACE printk
43#else 42#else