aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2008-04-29 04:01:44 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-04-29 11:06:18 -0400
commitc74c120a21d87b0b6925ada5830d8cac21e852d9 (patch)
tree79558a29ecadc7b71eeb5bdf0945680f0560b2ed /drivers/misc
parent928b4d8c8963e75bdb133f562b03b07f9aa4844a (diff)
proc: remove proc_root from drivers
Remove proc_root export. Creation and removal works well if parent PDE is supplied as NULL -- it worked always that way. So, one useless export removed and consistency added, some drivers created PDEs with &proc_root as parent but removed them as NULL and so on. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/hdpuftrs/hdpu_cpustate.c2
-rw-r--r--drivers/misc/hdpuftrs/hdpu_nexus.c12
2 files changed, 7 insertions, 7 deletions
diff --git a/drivers/misc/hdpuftrs/hdpu_cpustate.c b/drivers/misc/hdpuftrs/hdpu_cpustate.c
index 302e92418bbe..154155c9b638 100644
--- a/drivers/misc/hdpuftrs/hdpu_cpustate.c
+++ b/drivers/misc/hdpuftrs/hdpu_cpustate.c
@@ -210,7 +210,7 @@ static int hdpu_cpustate_probe(struct platform_device *pdev)
210 return ret; 210 return ret;
211 } 211 }
212 212
213 proc_de = create_proc_entry("sky_cpustate", 0666, &proc_root); 213 proc_de = create_proc_entry("sky_cpustate", 0666, NULL);
214 if (!proc_de) { 214 if (!proc_de) {
215 printk(KERN_WARNING "sky_cpustate: " 215 printk(KERN_WARNING "sky_cpustate: "
216 "Unable to create proc entry\n"); 216 "Unable to create proc entry\n");
diff --git a/drivers/misc/hdpuftrs/hdpu_nexus.c b/drivers/misc/hdpuftrs/hdpu_nexus.c
index 2fa36f7a6eb3..e92b7efccc72 100644
--- a/drivers/misc/hdpuftrs/hdpu_nexus.c
+++ b/drivers/misc/hdpuftrs/hdpu_nexus.c
@@ -102,8 +102,8 @@ static int hdpu_nexus_probe(struct platform_device *pdev)
102 printk(KERN_ERR "sky_nexus: Could not map slot id\n"); 102 printk(KERN_ERR "sky_nexus: Could not map slot id\n");
103 } 103 }
104 104
105 hdpu_slot_id = create_proc_entry("sky_slot_id", 0666, &proc_root); 105 hdpu_slot_id = create_proc_entry("sky_slot_id", 0666, NULL);
106 if (!hdpu_slot_id) { 106 if (!hdpu_slot_id)
107 printk(KERN_WARNING "sky_nexus: " 107 printk(KERN_WARNING "sky_nexus: "
108 "Unable to create proc dir entry: sky_slot_id\n"); 108 "Unable to create proc dir entry: sky_slot_id\n");
109 } else { 109 } else {
@@ -111,8 +111,8 @@ static int hdpu_nexus_probe(struct platform_device *pdev)
111 hdpu_slot_id->owner = THIS_MODULE; 111 hdpu_slot_id->owner = THIS_MODULE;
112 } 112 }
113 113
114 hdpu_chassis_id = create_proc_entry("sky_chassis_id", 0666, &proc_root); 114 hdpu_chassis_id = create_proc_entry("sky_chassis_id", 0666, NULL);
115 if (!hdpu_chassis_id) { 115 if (!hdpu_chassis_id)
116 printk(KERN_WARNING "sky_nexus: " 116 printk(KERN_WARNING "sky_nexus: "
117 "Unable to create proc dir entry: sky_chassis_id\n"); 117 "Unable to create proc dir entry: sky_chassis_id\n");
118 } else { 118 } else {
@@ -128,8 +128,8 @@ static int hdpu_nexus_remove(struct platform_device *pdev)
128 slot_id = -1; 128 slot_id = -1;
129 chassis_id = -1; 129 chassis_id = -1;
130 130
131 remove_proc_entry("sky_slot_id", &proc_root); 131 remove_proc_entry("sky_slot_id", NULL);
132 remove_proc_entry("sky_chassis_id", &proc_root); 132 remove_proc_entry("sky_chassis_id", NULL);
133 133
134 hdpu_slot_id = 0; 134 hdpu_slot_id = 0;
135 hdpu_chassis_id = 0; 135 hdpu_chassis_id = 0;