aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/block
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/s390/block
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/s390/block')
-rw-r--r--drivers/s390/block/dasd_proc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/s390/block/dasd_proc.c b/drivers/s390/block/dasd_proc.c
index 556063e8f7a9..8ae9406b10ad 100644
--- a/drivers/s390/block/dasd_proc.c
+++ b/drivers/s390/block/dasd_proc.c
@@ -311,7 +311,7 @@ out_error:
311int 311int
312dasd_proc_init(void) 312dasd_proc_init(void)
313{ 313{
314 dasd_proc_root_entry = proc_mkdir("dasd", &proc_root); 314 dasd_proc_root_entry = proc_mkdir("dasd", NULL);
315 if (!dasd_proc_root_entry) 315 if (!dasd_proc_root_entry)
316 goto out_nodasd; 316 goto out_nodasd;
317 dasd_proc_root_entry->owner = THIS_MODULE; 317 dasd_proc_root_entry->owner = THIS_MODULE;
@@ -335,7 +335,7 @@ dasd_proc_init(void)
335 out_nostatistics: 335 out_nostatistics:
336 remove_proc_entry("devices", dasd_proc_root_entry); 336 remove_proc_entry("devices", dasd_proc_root_entry);
337 out_nodevices: 337 out_nodevices:
338 remove_proc_entry("dasd", &proc_root); 338 remove_proc_entry("dasd", NULL);
339 out_nodasd: 339 out_nodasd:
340 return -ENOENT; 340 return -ENOENT;
341} 341}
@@ -345,5 +345,5 @@ dasd_proc_exit(void)
345{ 345{
346 remove_proc_entry("devices", dasd_proc_root_entry); 346 remove_proc_entry("devices", dasd_proc_root_entry);
347 remove_proc_entry("statistics", dasd_proc_root_entry); 347 remove_proc_entry("statistics", dasd_proc_root_entry);
348 remove_proc_entry("dasd", &proc_root); 348 remove_proc_entry("dasd", NULL);
349} 349}