patch-2.2.8 linux/net/irda/irlpt/irlpt_cli.c
Next file: linux/net/irda/irlpt/irlpt_srvr.c
Previous file: linux/net/irda/irlan/irlan_common.c
Back to the patch index
Back to the overall index
- Lines: 35
- Date:
Thu May 6 16:40:53 1999
- Orig file:
v2.2.7/linux/net/irda/irlpt/irlpt_cli.c
- Orig date:
Wed Apr 28 11:37:32 1999
diff -u --recursive --new-file v2.2.7/linux/net/irda/irlpt/irlpt_cli.c linux/net/irda/irlpt/irlpt_cli.c
@@ -157,14 +157,7 @@
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 @@
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 @@
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");
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)