aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/lantiq/ltq-vectoring/patches/100-cleanup.patch
blob: 2b0067379dfd64b673d0e1e783d8cfc99c3ea8d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
--- a/src/vectoring/ifxmips_vectoring.c
+++ b/src/vectoring/ifxmips_vectoring.c
@@ -325,7 +325,7 @@ static int proc_write_dbg(struct file *f
             else
                 printk(dbg_enable_mask_str[i] + 1);
         }
-        printk("] > /proc/vectoring\n");
+        printk("] > /proc/driver/vectoring\n");
     }
 
     if ( f_enable )
@@ -433,11 +433,10 @@ static int __init vectoring_init(void)
 {
     struct proc_dir_entry *res;
 
-    res = proc_create("vectoring",
+    res = proc_create("driver/vectoring",
 				S_IRUGO|S_IWUSR,
 				0,
 				&g_proc_file_vectoring_dbg_seq_fops);
-    printk("res = %p\n", res);
 
     register_netdev_event_handler();
     g_ptm_net_dev = dev_get_by_name(&init_net, "ptm0");
@@ -460,7 +459,7 @@ static void __exit vectoring_exit(void)
 
     unregister_netdev_event_handler();
 
-    remove_proc_entry("vectoring", NULL);
+    remove_proc_entry("driver/vectoring", NULL);
 }
 
 module_init(vectoring_init);
--- a/src/vectoring/ifxmips_vectoring_test.c
+++ b/src/vectoring/ifxmips_vectoring_test.c
@@ -79,7 +79,7 @@ static int proc_write_vectoring(struct f
         }
     }
     else
-        printk("echo send <size> > /proc/eth/vectoring\n");
+        printk("echo send <size> > /proc/driver/vectoring_test\n");
 
     return count;
 }
@@ -112,9 +112,7 @@ static __init void proc_file_create(void
 {
     struct proc_dir_entry *res;
 
-//    g_proc_dir = proc_mkdir("eth", NULL);
-
-    res = proc_create("eth/vectoring",
+    res = proc_create("driver/vectoring_test",
                             S_IRUGO|S_IWUSR,
                             g_proc_dir,
 			&g_proc_file_vectoring_seq_fops);
@@ -122,10 +120,7 @@ static __init void proc_file_create(void
 
 static __exit void proc_file_delete(void)
 {
-    remove_proc_entry("vectoring",
-                      g_proc_dir);
-
-    remove_proc_entry("eth", NULL);
+    remove_proc_entry("driver/vectoring_test", NULL);
 }
 
 
@@ -151,3 +146,5 @@ static void __exit vectoring_test_exit(v
 
 module_init(vectoring_test_init);
 module_exit(vectoring_test_exit);
+
+MODULE_LICENSE("GPL");