cciss: assign PDE->data before gluing PDE into /proc tree

Simply replace proc_create and further data assigned with proc_create_data.

Signed-off-by: Denis V. Lunev <den@openvz.org>
Cc: Alexey Dobriyan <adobriyan@openvz.org>
Cc: Eric W. Biederman <ebiederm@xmission.com>
Acked-by: Mike Miller <mike.miller@hp.com>
Cc: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Denis V. Lunev 2008-05-01 04:35:14 -07:00 committed by Linus Torvalds
parent 8a3e77cc21
commit 3dfcf9c4bf
1 changed files with 2 additions and 6 deletions

View File

@ -428,13 +428,9 @@ static void __devinit cciss_procinit(int i)
proc_cciss = proc_mkdir("driver/cciss", NULL); proc_cciss = proc_mkdir("driver/cciss", NULL);
if (!proc_cciss) if (!proc_cciss)
return; return;
pde = proc_create(hba[i]->devname, S_IWUSR | S_IRUSR | S_IRGRP | pde = proc_create_data(hba[i]->devname, S_IWUSR | S_IRUSR | S_IRGRP |
S_IROTH, proc_cciss, S_IROTH, proc_cciss,
&cciss_proc_fops); &cciss_proc_fops, hba[i]);
if (!pde)
return;
pde->data = hba[i];
} }
#endif /* CONFIG_PROC_FS */ #endif /* CONFIG_PROC_FS */