#include "uhci-hcd.h"
+static struct dentry *uhci_debugfs_root = NULL;
+
/* Handle REALLY large printk's so we don't overflow buffers */
static inline void lprintk(char *buf)
{
struct uhci_td *td;
struct list_head *tmp, *head;
- spin_lock_irqsave(&uhci->schedule_lock, flags);
+ spin_lock_irqsave(&uhci->lock, flags);
out += sprintf(out, "HC status\n");
out += uhci_show_status(uhci, out, len - (out - buf));
if (debug > 2)
out += uhci_show_lists(uhci, out, len - (out - buf));
- spin_unlock_irqrestore(&uhci->schedule_lock, flags);
+ spin_unlock_irqrestore(&uhci->lock, flags);
return out - buf;
}
#define MAX_OUTPUT (64 * 1024)
-static struct dentry *uhci_debugfs_root = NULL;
-
struct uhci_debug {
int size;
char *data;
.read = uhci_debug_read,
.release = uhci_debug_release,
};
+
+#else /* CONFIG_DEBUG_FS */
+
+#define uhci_debug_operations (* (struct file_operations *) NULL)
+
#endif