aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ehci.h
diff options
context:
space:
mode:
authorXenia Ragiadakou <burzalodowa@gmail.com>2013-08-29 04:45:13 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-08-30 15:02:07 -0400
commit1512c91f1c7633b031f69d43f1d3523b29e77593 (patch)
tree59c62ddb215303d2ddd172b1ef6d166376615736 /drivers/usb/host/ehci.h
parentfea26ef095cc74f1e11c046a7bf4a29160f8ffb3 (diff)
ehci: enable debugging code when CONFIG_DYNAMIC_DEBUG is set
The debugging code for ehci is enabled to run if the DEBUG flag is defined. This patch enables the debugging code also when the kernel is configured with dynamic debugging on. Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com> Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/ehci.h')
-rw-r--r--drivers/usb/host/ehci.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/host/ehci.h b/drivers/usb/host/ehci.h
index 6067d4bcc037..291db7d09f22 100644
--- a/drivers/usb/host/ehci.h
+++ b/drivers/usb/host/ehci.h
@@ -38,7 +38,7 @@ typedef __u16 __bitwise __hc16;
38#endif 38#endif
39 39
40/* statistics can be kept for tuning/monitoring */ 40/* statistics can be kept for tuning/monitoring */
41#ifdef DEBUG 41#if defined(DEBUG) || defined(CONFIG_DYNAMIC_DEBUG)
42#define EHCI_STATS 42#define EHCI_STATS
43#endif 43#endif
44 44
@@ -226,7 +226,7 @@ struct ehci_hcd { /* one per controller */
226#endif 226#endif
227 227
228 /* debug files */ 228 /* debug files */
229#ifdef DEBUG 229#if defined(DEBUG) || defined(CONFIG_DYNAMIC_DEBUG)
230 struct dentry *debug_dir; 230 struct dentry *debug_dir;
231#endif 231#endif
232 232
@@ -783,9 +783,9 @@ static inline u32 hc32_to_cpup (const struct ehci_hcd *ehci, const __hc32 *x)
783 dev_warn(ehci_to_hcd(ehci)->self.controller , fmt , ## args) 783 dev_warn(ehci_to_hcd(ehci)->self.controller , fmt , ## args)
784 784
785 785
786#ifndef DEBUG 786#if !defined(DEBUG) && !defined(CONFIG_DYNAMIC_DEBUG)
787#define STUB_DEBUG_FILES 787#define STUB_DEBUG_FILES
788#endif /* DEBUG */ 788#endif /* !DEBUG && !CONFIG_DYNAMIC_DEBUG */
789 789
790/*-------------------------------------------------------------------------*/ 790/*-------------------------------------------------------------------------*/
791 791