airo: correct proc entry creation interfaces

* use proc_mkdir_mode() instead of create_proc_entry(S_IFDIR|...),
  export proc_mkdir_mode() for that, oh well.
* don't supply S_IFREG to proc_create_data(), it's unnecessary

Signed-off-by: Alexey Dobriyan <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
This commit is contained in:
Alexey Dobriyan 2011-05-14 00:12:48 +03:00 • committed by John W. Linville
commit 011159a0a7
2 changed files with 12 additions and 22 deletions

View file

@ -674,6 +674,7 @@ struct proc_dir_entry *proc_mkdir_mode(const char *name, mode_t mode,
}
return ent;
}
EXPORT_SYMBOL(proc_mkdir_mode);
struct proc_dir_entry *proc_net_mkdir(struct net *net, const char *name,
struct proc_dir_entry *parent)