Commit 5f1dace7 authored by Linus Torvalds's avatar Linus Torvalds

Import 2.2.8pre3

parent 41ab864d
......@@ -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 */
......
......@@ -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
......
......@@ -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");
......
......@@ -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");
......
......@@ -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);
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment