Commit a90b8fc6 authored by Oliver Neukum's avatar Oliver Neukum Committed by Greg Kroah-Hartman

fotg210: remove conditional compilation

Always compile in the debugfs support
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 991fb3da
...@@ -352,13 +352,6 @@ dbg_port_buf(char *buf, unsigned len, const char *label, int port, u32 status) ...@@ -352,13 +352,6 @@ dbg_port_buf(char *buf, unsigned len, const char *label, int port, u32 status)
/*-------------------------------------------------------------------------*/ /*-------------------------------------------------------------------------*/
#ifdef STUB_DEBUG_FILES
static inline void create_debug_files(struct fotg210_hcd *bus) { }
static inline void remove_debug_files(struct fotg210_hcd *bus) { }
#else
/* troubleshooting help: expose state in debugfs */ /* troubleshooting help: expose state in debugfs */
static int debug_async_open(struct inode *, struct file *); static int debug_async_open(struct inode *, struct file *);
...@@ -954,7 +947,6 @@ static inline void remove_debug_files(struct fotg210_hcd *fotg210) ...@@ -954,7 +947,6 @@ static inline void remove_debug_files(struct fotg210_hcd *fotg210)
debugfs_remove_recursive(fotg210->debug_dir); debugfs_remove_recursive(fotg210->debug_dir);
} }
#endif /* STUB_DEBUG_FILES */
/*-------------------------------------------------------------------------*/ /*-------------------------------------------------------------------------*/
/* /*
......
...@@ -174,9 +174,7 @@ struct fotg210_hcd { /* one per controller */ ...@@ -174,9 +174,7 @@ struct fotg210_hcd { /* one per controller */
#endif #endif
/* debug files */ /* debug files */
#ifdef DEBUG
struct dentry *debug_dir; struct dentry *debug_dir;
#endif
}; };
/* convert between an HCD pointer and the corresponding FOTG210_HCD */ /* convert between an HCD pointer and the corresponding FOTG210_HCD */
...@@ -741,10 +739,4 @@ static inline unsigned fotg210_read_frame_index(struct fotg210_hcd *fotg210) ...@@ -741,10 +739,4 @@ static inline unsigned fotg210_read_frame_index(struct fotg210_hcd *fotg210)
}) })
/*-------------------------------------------------------------------------*/ /*-------------------------------------------------------------------------*/
#ifndef DEBUG
#define STUB_DEBUG_FILES
#endif /* DEBUG */
/*-------------------------------------------------------------------------*/
#endif /* __LINUX_FOTG210_H */ #endif /* __LINUX_FOTG210_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment