lantiq: fix ltq_ptm compile
authorJohn Crispin <john@openwrt.org>
Mon, 7 Oct 2013 20:13:32 +0000 (20:13 +0000)
committerJohn Crispin <john@openwrt.org>
Mon, 7 Oct 2013 20:13:32 +0000 (20:13 +0000)
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 38329

package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_adsl.c
package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_common.h

index 391d56cf09dd94766ba1a411c73e83809e938bd6..615affea4f4111a0536a431ab72d7a61e7d194a1 100644 (file)
@@ -815,6 +815,7 @@ static void skb_swap(struct sk_buff *skb)
 
 static INLINE void proc_file_create(void)
 {
+#if defined(ENABLE_DBG_PROC) && ENABLE_DBG_PROC
     struct proc_dir_entry *res;
 
     g_ptm_dir = proc_mkdir("driver/ifx_ptm", NULL);
@@ -849,7 +850,6 @@ static INLINE void proc_file_create(void)
   #endif
 #endif
 
-#if defined(ENABLE_DBG_PROC) && ENABLE_DBG_PROC
     res = create_proc_entry("dbg",
                             0,
                             g_ptm_dir);
index ccd19b189bf6f4a31bebf12f5b2e9d430573256b..00d417722568446123571b6b4d37c9919546f864 100644 (file)
@@ -58,7 +58,7 @@
 
 #define DEBUG_QOS                       1
 
-#define ENABLE_DBG_PROC                 1
+#define ENABLE_DBG_PROC                 0
 
 #define ENABLE_FW_PROC                  1