diff options
Diffstat (limited to 'ipc/util.c')
-rw-r--r-- | ipc/util.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/ipc/util.c b/ipc/util.c index 4c465cb22360..3339177b336c 100644 --- a/ipc/util.c +++ b/ipc/util.c | |||
@@ -165,13 +165,12 @@ void __init ipc_init_proc_interface(const char *path, const char *header, | |||
165 | iface->ids = ids; | 165 | iface->ids = ids; |
166 | iface->show = show; | 166 | iface->show = show; |
167 | 167 | ||
168 | pde = create_proc_entry(path, | 168 | pde = proc_create_data(path, |
169 | S_IRUGO, /* world readable */ | 169 | S_IRUGO, /* world readable */ |
170 | NULL /* parent dir */); | 170 | NULL, /* parent dir */ |
171 | if (pde) { | 171 | &sysvipc_proc_fops, |
172 | pde->data = iface; | 172 | iface); |
173 | pde->proc_fops = &sysvipc_proc_fops; | 173 | if (!pde) { |
174 | } else { | ||
175 | kfree(iface); | 174 | kfree(iface); |
176 | } | 175 | } |
177 | } | 176 | } |