projects/linux·commit 3dfcf9c4

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

3dfcf9c4 · Denis V. Lunev <[email protected]> · 2008-05-01 04:35:14 -07:00

Simply replace proc_create and further data assigned with proc_create_data.

Signed-off-by: Denis V. Lunev <[email protected]>
Cc: Alexey Dobriyan <[email protected]>
Cc: Eric W. Biederman <[email protected]>
Acked-by: Mike Miller <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
3dfcf9c4bf1fda4aa75861bcf6c50607dd322fe5
Parents
8a3e77cc

Changes

1 files changed · +2 −6

FileStatusAddDelContent
drivers/block/cciss.cmodified+2−6View file

drivers/block/cciss.c

View file
diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c
index e539be5..e336b05 100644
--- a/drivers/block/cciss.c
+++ b/drivers/block/cciss.c
@@ -428,13 +428,9 @@ static void __devinit cciss_procinit(int i)
proc_cciss = proc_mkdir("driver/cciss", NULL);
if (!proc_cciss)
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,
- &cciss_proc_fops);
- if (!pde)
- return;
-
- pde->data = hba[i];
+ &cciss_proc_fops, hba[i]);
}
#endif /* CONFIG_PROC_FS */