cciss: assign PDE->data before gluing PDE into /proc tree
authorDenis V. Lunev <[email protected]>
Thu, 1 May 2008 11:35:14 +0000 (04:35 -0700)
committerLinus Torvalds <[email protected]>
Thu, 1 May 2008 15:04:02 +0000 (08:04 -0700)
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]>
drivers/block/cciss.c

index e539be5750dc694703af89853fee7a41ffed5bac..e336b05fe4a7f5d763dd0db8c61dc740b93635a9 100644 (file)
@@ -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 */