USB: chipidea: add -DDEBUG if debugging is enabled
authorRichard Zhao <[email protected]>
Wed, 12 Sep 2012 11:58:10 +0000 (14:58 +0300)
committerGreg Kroah-Hartman <[email protected]>
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 <[email protected]>
Tested-by: Michael Grzeschik <[email protected]>
Tested-by: Marc Kleine-Budde <[email protected]>
Signed-off-by: Alexander Shishkin <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
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