USB: chipidea: add -DDEBUG if debugging is enabled
authorRichard Zhao <richard.zhao@freescale.com>
Wed, 12 Sep 2012 11:58:10 +0000 (14:58 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 12 Sep 2012 18:20:38 +0000 (11:20 -0700)
This patch turns on debugging output if CONFIG_USB_CHIPIDEA_DEBUG is
enabled.

Signed-off-by: Richard Zhao <richard.zhao@freescale.com>
Tested-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Tested-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/chipidea/Makefile

index 57e510f6c24592901a3eabaf40a443bde41b7fab..d92ca325b104f9ccd6b7a27cf2b7177b443190c4 100644 (file)
@@ -1,3 +1,5 @@
+ccflags-$(CONFIG_USB_CHIPIDEA_DEBUG) := -DDEBUG
+
 obj-$(CONFIG_USB_CHIPIDEA)             += ci_hdrc.o
 
 ci_hdrc-y                              := core.o