]> git.neil.brown.name Git - history.git/commitdiff
Import 2.2.8pre3 2.2.8pre3
authorLinus Torvalds <torvalds@linuxfoundation.org>
Fri, 23 Nov 2007 20:18:49 +0000 (15:18 -0500)
committerLinus Torvalds <torvalds@linuxfoundation.org>
Fri, 23 Nov 2007 20:18:49 +0000 (15:18 -0500)
net/irda/ircomm/ircomm_common.c
net/irda/irlan/irlan_common.c
net/irda/irlpt/irlpt_cli.c
net/irda/irlpt/irlpt_srvr.c
net/irda/irproc.c

index c7e805242b83585b4fcb0e629fc952b0076c20b4..bc8758e1eff540c2808615890bcc9cf7ad9a5257 100644 (file)
@@ -147,13 +147,7 @@ static char *ircommevent[] = {
 };
 
 #ifdef CONFIG_PROC_FS
-extern struct proc_dir_entry proc_irda;
-struct proc_dir_entry proc_ircomm = {
-       0, 6, "ircomm",
-        S_IFREG | S_IRUGO, 1, 0, 0,
-        0, NULL,
-        &ircomm_proc_read,
-};
+extern struct proc_dir_entry *proc_irda;
 #endif
 
 static void (*state[])( struct ircomm_cb *self, IRCOMM_EVENT event,
@@ -229,7 +223,7 @@ __initfunc(int ircomm_init(void))
         */
 
 #ifdef CONFIG_PROC_FS
-       proc_register( &proc_irda, &proc_ircomm);
+       create_proc_entry("ircomm", 0, proc_irda)->get_info = ircomm_proc_read;
 #endif /* CONFIG_PROC_FS */
 
 
@@ -267,7 +261,7 @@ void ircomm_cleanup(void)
        }
 
 #ifdef CONFIG_PROC_FS
-       proc_unregister( &proc_irda, proc_ircomm.low_ino);
+       remove_proc_entry("ircomm", proc_irda);
 #endif /* CONFIG_PROC_FS */
 }
 #endif /* MODULE */
index 00619cf44c992734a774683885256e0817026a44..6a30574ca765951ffa3aa58d4079a02899a5f6b8 100644 (file)
@@ -99,15 +99,8 @@ static void irlan_close_tsaps(struct irlan_cb *self);
 static int irlan_proc_read(char *buf, char **start, off_t offset, int len, 
                           int unused);
 
-extern struct proc_dir_entry proc_irda;
-
-struct proc_dir_entry proc_irlan = {
-       0, 5, "irlan",
-       S_IFREG | S_IRUGO, 1, 0, 0,
-       0, NULL,
-       &irlan_proc_read,
-};
-#endif /* CONFIG_PROC_FS */
+extern struct proc_dir_entry *proc_irda;
+#endif
 
 void irlan_watchdog_timer_expired(unsigned long data)
 {
@@ -188,7 +181,7 @@ __initfunc(int irlan_init(void))
                return -ENOMEM;
        }
 #ifdef CONFIG_PROC_FS
-       proc_register(&proc_irda, &proc_irlan);
+       create_proc_entry("irlan", 0, proc_irda)->get_info = irlan_proc_read;
 #endif /* CONFIG_PROC_FS */
 
        DEBUG(4, __FUNCTION__ "()\n");
@@ -224,7 +217,7 @@ void irlan_cleanup(void)
        irlmp_unregister_service(skey);
 
 #ifdef CONFIG_PROC_FS
-       proc_unregister(&proc_irda, proc_irlan.low_ino);
+       remove_proc_entry("irlan", proc_irda);
 #endif /* CONFIG_PROC_FS */
        /*
         *  Delete hashbin and close all irlan client instances in it
index 6ccd7a3d903a21fd7486e3817dfb161bd7c89540..a0fbe23d678986188405048e1e86c923caa74477 100644 (file)
@@ -157,14 +157,7 @@ static int irlpt_client_proc_read( char *buf, char **start, off_t offset,
        return len;
 }
 
-struct proc_dir_entry proc_irlpt_client = {
-       0, 12, "irlpt_client",
-       S_IFREG | S_IRUGO, 1, 0, 0,
-       0, NULL /* ops -- default to array */,
-       &irlpt_client_proc_read /* get_info */,
-};
-
-extern struct proc_dir_entry proc_irda;
+extern struct proc_dir_entry *proc_irda;
 
 #endif /* CONFIG_PROC_FS */
 
@@ -193,7 +186,8 @@ __initfunc(int irlpt_client_init(void))
                                     NULL);
 
 #ifdef CONFIG_PROC_FS
-       proc_register( &proc_irda, &proc_irlpt_client);
+       create_proc_entry("irlpt_client", 0, proc_irda)->get_info
+                       = irlpt_client_proc_read;
 #endif /* CONFIG_PROC_FS */
 
        DEBUG( irlpt_client_debug, __FUNCTION__ " -->\n");
@@ -219,7 +213,7 @@ static void irlpt_client_cleanup(void)
        hashbin_delete( irlpt_clients, (FREE_FUNC) irlpt_client_close);
 
 #ifdef CONFIG_PROC_FS
-       proc_unregister( &proc_irda, proc_irlpt_client.low_ino);
+       remove_proc_entry("irlpt_client", proc_irda);
 #endif
 
        DEBUG( irlpt_client_debug, __FUNCTION__ " -->\n");
index ec7339e0e531b0c578670ace1623809f24aa5d5d..a1362d0dc600b6a556cbd5988d5fe3e66640810b 100644 (file)
@@ -160,14 +160,7 @@ static int irlpt_server_proc_read(char *buf, char **start, off_t offset,
        return len;
 }
 
-extern struct proc_dir_entry proc_irda;
-
-struct proc_dir_entry proc_irlpt_server = {
-       0, 12, "irlpt_server",
-       S_IFREG | S_IRUGO, 1, 0, 0,
-       0, NULL /* ops -- default to array */,
-       &irlpt_server_proc_read /* get_info */,
-};
+extern struct proc_dir_entry *proc_irda;
 
 #endif /* CONFIG_PROC_FS */
 
@@ -215,7 +208,8 @@ __initfunc(int irlpt_server_init(void))
        register_irlpt_server();
 
 #ifdef CONFIG_PROC_FS
-       proc_register( &proc_irda, &proc_irlpt_server);
+       create_proc_entry("irlpt_server", 0, proc_irda)->get_info
+               = irlpt_server_proc_read;
 #endif /* CONFIG_PROC_FS */
 
        DEBUG( irlpt_server_debug, __FUNCTION__ " -->\n");
@@ -248,7 +242,7 @@ static void irlpt_server_cleanup(void)
        kfree(irlpt_server);
 
 #ifdef CONFIG_PROC_FS
-       proc_unregister( &proc_irda, proc_irlpt_server.low_ino);
+       remove_proc_entry("irlpt_server", proc_irda);
 #endif
 
        DEBUG( irlpt_server_debug, __FUNCTION__ " -->\n");
index 6828c51595b0b1b5a900595a526bc86a1d3cd005..98f1ee2bac3897ec2df0c213a80eb7701839f940 100644 (file)
@@ -84,12 +84,12 @@ static irda_entry dir[] = {
  */
 void irda_proc_register(void) {
        int i;
-       proc_irda = proc_create_entry("net/irda", S_IFDIR, NULL);
+       proc_irda = create_proc_entry("net/irda", S_IFDIR, NULL);
 #ifdef MODULE
        proc_irda->fill_inode = &irda_proc_modcount;
 #endif /* MODULE */
        for (i=0;i<IRDA_ENTRIES_NUM;i++)
-               proc_create_entry(dir[i].name,0,proc_irda)->get_info=dir[i].fn;
+               create_proc_entry(dir[i].name,0,proc_irda)->get_info=dir[i].fn;
 }
 
 /*
@@ -101,6 +101,6 @@ void irda_proc_register(void) {
 void irda_proc_unregister(void) {
        int i;
        for (i=0;i<IRDA_ENTRIES_NUM;i++)
-               proc_remove_entry(dir[i].name, proc_irda);
-       proc_remove_entry("net/irda", NULL);
+               remove_proc_entry(dir[i].name, proc_irda);
+       remove_proc_entry("net/irda", NULL);
 }