fotg210: remove conditional compilation
authorOliver Neukum <oneukum@suse.de>
Mon, 18 Nov 2013 12:23:03 +0000 (13:23 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Dec 2013 18:28:39 +0000 (10:28 -0800)
Always compile in the debugfs support

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/fotg210-hcd.c
drivers/usb/host/fotg210.h

index 55486bd23cf1f7c0917e0a61794a4db3a807e828..3af053343cf45cfa65442621a46c1d9b5eea5a05 100644 (file)
@@ -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 */
 
 static int debug_async_open(struct inode *, struct file *);
@@ -954,7 +947,6 @@ static inline void remove_debug_files(struct fotg210_hcd *fotg210)
        debugfs_remove_recursive(fotg210->debug_dir);
 }
 
-#endif /* STUB_DEBUG_FILES */
 /*-------------------------------------------------------------------------*/
 
 /*
index 8920f9d32564a1770b8a4c40acf6eb51dcd6b9cb..ac6cd1bfd208e286538c71b157e17568adaf8cb6 100644 (file)
@@ -174,9 +174,7 @@ struct fotg210_hcd {                        /* one per controller */
 #endif
 
        /* debug files */
-#ifdef DEBUG
        struct dentry           *debug_dir;
-#endif
 };
 
 /* 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)
 })
 /*-------------------------------------------------------------------------*/
 
-#ifndef DEBUG
-#define STUB_DEBUG_FILES
-#endif /* DEBUG */
-
-/*-------------------------------------------------------------------------*/
-
 #endif /* __LINUX_FOTG210_H */
This page took 0.02773 seconds and 5 git commands to generate.