Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 86515
b: refs/heads/master
c: 6d37a15
h: refs/heads/master
i:
  86513: f461cb1
  86511: 6aeda28
v: v3
  • Loading branch information
Wang Chen authored and David S. Miller committed Feb 28, 2008
1 parent c3b83ee commit 69a5af0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d45fba3625249fada590a2eea09c38e755a3a2a7
refs/heads/master: 6d37a1581695fba42f4b51e3ff4c2871552cd6d7
10 changes: 4 additions & 6 deletions trunk/net/wanrouter/wanproc.c
Original file line number Diff line number Diff line change
Expand Up @@ -292,14 +292,12 @@ int __init wanrouter_proc_init(void)
if (!proc_router)
goto fail;

p = create_proc_entry("config", S_IRUGO, proc_router);
p = proc_create("config", S_IRUGO, proc_router, &config_fops);
if (!p)
goto fail_config;
p->proc_fops = &config_fops;
p = create_proc_entry("status", S_IRUGO, proc_router);
p = proc_create("status", S_IRUGO, proc_router, &status_fops);
if (!p)
goto fail_stat;
p->proc_fops = &status_fops;
return 0;
fail_stat:
remove_proc_entry("config", proc_router);
Expand Down Expand Up @@ -329,10 +327,10 @@ int wanrouter_proc_add(struct wan_device* wandev)
if (wandev->magic != ROUTER_MAGIC)
return -EINVAL;

wandev->dent = create_proc_entry(wandev->name, S_IRUGO, proc_router);
wandev->dent = proc_create(wandev->name, S_IRUGO,
proc_router, &wandev_fops);
if (!wandev->dent)
return -ENOMEM;
wandev->dent->proc_fops = &wandev_fops;
wandev->dent->data = wandev;
return 0;
}
Expand Down

0 comments on commit 69a5af0

Please sign in to comment.