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
|
|
@ -1148,7 +1148,7 @@ vicam_write_proc_gain(struct file *file, const char *buffer,
|
|||
static void
|
||||
vicam_create_proc_root(void)
|
||||
{
|
||||
vicam_proc_root = create_proc_entry("video/vicam", S_IFDIR, 0);
|
||||
vicam_proc_root = proc_mkdir("video/vicam", NULL);
|
||||
|
||||
if (vicam_proc_root)
|
||||
vicam_proc_root->owner = THIS_MODULE;
|
||||
|
|
@ -1181,7 +1181,7 @@ vicam_create_proc_entry(struct vicam_camera *cam)
|
|||
|
||||
sprintf(name, "video%d", cam->vdev.minor);
|
||||
|
||||
cam->proc_dir = create_proc_entry(name, S_IFDIR, vicam_proc_root);
|
||||
cam->proc_dir = proc_mkdir(name, vicam_proc_root);
|
||||
|
||||
if ( !cam->proc_dir )
|
||||
return; // FIXME: We should probably return an error here
|
||||
|
|
|
|||
Loading…
Reference in a new issue