]> git.karo-electronics.de Git - linux-beck.git/commitdiff
PNP: turn on -DDEBUG when CONFIG_PNP_DEBUG is set
authorBjorn Helgaas <bjorn.helgaas@hp.com>
Mon, 28 Apr 2008 22:33:48 +0000 (16:33 -0600)
committerLen Brown <len.brown@intel.com>
Tue, 29 Apr 2008 07:22:14 +0000 (03:22 -0400)
Turn on -DDEBUG in CFLAGS when CONFIG_PNP_DEBUG=y.  This makes
dev_dbg() do what you expect.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Acked-by: Rene Herman <rene.herman@gmail.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/pnp/isapnp/Makefile
drivers/pnp/pnpacpi/Makefile
drivers/pnp/pnpbios/Makefile

index cac18bbfb817b1e042d820fbf7eace2adbdc6f9f..3e38f06f8d785b64d77a76a392d78c2593e44205 100644 (file)
@@ -5,3 +5,7 @@
 isapnp-proc-$(CONFIG_PROC_FS) = proc.o
 
 obj-y := core.o compat.o $(isapnp-proc-y)
+
+ifeq ($(CONFIG_PNP_DEBUG),y)
+EXTRA_CFLAGS += -DDEBUG
+endif
index 905326fcca85021bd14083aee684610527c7f8b0..2d7a1e6908be7df6ba535fb8e18ad7c3701e4816 100644 (file)
@@ -3,3 +3,7 @@
 #
 
 obj-y := core.o rsparser.o
+
+ifeq ($(CONFIG_PNP_DEBUG),y)
+EXTRA_CFLAGS += -DDEBUG
+endif
index 3cd3ed760605fbc7c6f5046bc4f714345aa3b01c..310e2b3a7710458e4e25518bfdb6f89ff713e9dd 100644 (file)
@@ -5,3 +5,7 @@
 pnpbios-proc-$(CONFIG_PNPBIOS_PROC_FS) = proc.o
 
 obj-y := core.o bioscalls.o rsparser.o $(pnpbios-proc-y)
+
+ifeq ($(CONFIG_PNP_DEBUG),y)
+EXTRA_CFLAGS += -DDEBUG
+endif