mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
[PATCH] proc_mkdir() should be used to create procfs directories
A bunch of create_proc_dir_entry() calls creating directories had crept in since the last sweep; converted to proc_mkdir(). Signed-off-by: Al Viro <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
ecba97d4aa
commit
666002218d
15 changed files with 31 additions and 45 deletions
|
|
@ -2849,8 +2849,7 @@ sg_proc_init(void)
|
|||
struct proc_dir_entry *pdep;
|
||||
struct sg_proc_leaf * leaf;
|
||||
|
||||
sg_proc_sgp = create_proc_entry(sg_proc_sg_dirname,
|
||||
S_IFDIR | S_IRUGO | S_IXUGO, NULL);
|
||||
sg_proc_sgp = proc_mkdir(sg_proc_sg_dirname, NULL);
|
||||
if (!sg_proc_sgp)
|
||||
return 1;
|
||||
for (k = 0; k < num_leaves; ++k) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue