Fix uhci to build with PROC_FS=n. However, I'm not sure about the patch. Does all of this go into debugfs now, instead of into procfs?

Signed-off-by: Randy Dunlap <[EMAIL PROTECTED]>

diffstat:=
 drivers/usb/host/uhci-debug.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
diff -Naurp ./drivers/usb/host/uhci-debug.c~uhci_debugfs ./drivers/usb/host/uhci-debug.c
--- ./drivers/usb/host/uhci-debug.c~uhci_debugfs	2005-01-22 19:06:31.214537776 -0800
+++ ./drivers/usb/host/uhci-debug.c	2005-01-24 20:41:06.628150784 -0800
@@ -34,6 +34,7 @@ static inline void lprintk(char *buf)
 	}
 }
 
+#ifdef CONFIG_DEBUG_FS
 static int uhci_show_td(struct uhci_td *td, char *buf, int len, int space)
 {
 	char *out = buf;
@@ -194,7 +195,6 @@ out:
 	  out += sprintf(out, "- Frame %d\n", i); \
 	}
 
-#ifdef CONFIG_PROC_FS
 static const char *qh_names[] = {
   "skel_int128_qh", "skel_int64_qh",
   "skel_int32_qh", "skel_int16_qh",
@@ -497,8 +497,6 @@ static int uhci_sprint_schedule(struct u
 
 #define MAX_OUTPUT	(64 * 1024)
 
-static struct dentry *uhci_debugfs_root = NULL;
-
 struct uhci_debug {
 	int size;
 	char *data;
@@ -579,4 +577,7 @@ static struct file_operations uhci_debug
 	.read =		uhci_debug_read,
 	.release =	uhci_debug_release,
 };
+
+static struct dentry *uhci_debugfs_root = NULL;
 #endif
+

Reply via email to