]> Pileus Git - ~andy/linux/commitdiff
uhci: compile debugfs conditional on CONFIG_DYNAMIC_DEBUG || DEBUG
authorOliver Neukum <oneukum@suse.de>
Mon, 18 Nov 2013 12:23:10 +0000 (13:23 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Dec 2013 18:31:20 +0000 (10:31 -0800)
This makes sure the header files are all there

Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/uhci-debug.c

index 8e239cdd95d51025c8ca806da08899a420a19e09..3989f0ad05392a3c2d75ede635ea5213281a8044 100644 (file)
@@ -20,7 +20,7 @@
 
 static struct dentry *uhci_debugfs_root;
 
-#ifdef DEBUG
+#if defined(DEBUG) || defined(CONFIG_DYNAMIC_DEBUG)
 
 /* Handle REALLY large printks so we don't overflow buffers */
 static void lprintk(char *buf)
@@ -635,7 +635,7 @@ static const struct file_operations uhci_debug_operations = {
 
 #endif /* CONFIG_DEBUG_FS */
 
-#else  /* DEBUG */
+#else  /* DEBUG || CONFIG_DYNAMIC_DEBUG*/
 
 static inline void lprintk(char *buf)
 {}