patch-2.2.8 linux/net/irda/irlpt/irlpt_srvr.c
Next file: linux/net/irda/irproc.c
Previous file: linux/net/irda/irlpt/irlpt_cli.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_srvr.c
- Orig date:
Fri Apr 16 14:47:31 1999
diff -u --recursive --new-file v2.2.7/linux/net/irda/irlpt/irlpt_srvr.c linux/net/irda/irlpt/irlpt_srvr.c
@@ -160,14 +160,7 @@
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 @@
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 @@
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");
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)