patch-2.3.30 linux/drivers/isdn/divert/divert_procfs.c

Next file: linux/drivers/misc/acpi.c
Previous file: linux/drivers/isdn/avmb1/kcapi.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.29/linux/drivers/isdn/divert/divert_procfs.c linux/drivers/isdn/divert/divert_procfs.c
@@ -294,22 +294,6 @@
 
 struct inode_operations divert_file_inode_operations = {
     &isdn_fops,  /* default proc file-ops */
-    NULL,	 /* create	*/
-    NULL,	 /* lookup	*/
-    NULL,	 /* link		*/
-    NULL,	 /* unlink	*/
-    NULL,	 /* symlink	*/
-    NULL,	 /* mkdir	*/
-    NULL,	 /* rmdir	   */
-    NULL,	 /* mknod	   */
-    NULL,	    /* rename	   */
-    NULL,	    /* readlink	   */
-    NULL,	    /* follow_link */
-    NULL,	    /* readpage	   */
-    NULL,	    /* writepage   */
-    NULL,	    /* bmap	   */
-    NULL,	    /* truncate	   */
-    NULL	    /* permission  */
 };
 
 
@@ -329,10 +313,10 @@
 	init_waitqueue_head(&rd_queue);
 
 #ifdef CONFIG_PROC_FS
-  isdn_proc_entry = create_proc_entry("isdn", S_IFDIR | S_IRUGO | S_IXUGO ,proc_net);
+  isdn_proc_entry = proc_mkdir("isdn", proc_net);
   if (!isdn_proc_entry) 
     return(-1);
-  isdn_divert_entry = create_proc_entry("divert",S_IFREG | S_IRUGO,isdn_proc_entry); 
+  isdn_divert_entry = create_proc_entry("divert",0,isdn_proc_entry); 
   if (!isdn_divert_entry) 
    {
      remove_proc_entry("isdn",proc_net);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)