瀏覽代碼

uhci: compile debugfs conditional on CONFIG_DYNAMIC_DEBUG || DEBUG

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>
Oliver Neukum 11 年之前
父節點
當前提交
9bab24afba
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      drivers/usb/host/uhci-debug.c

+ 2 - 2
drivers/usb/host/uhci-debug.c

@@ -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)
 {}