Commit 96e7d915 authored by Al Viro's avatar Al Viro

isp1362-hcd: don't reimplement proc_create_data()

... especially in a racy way
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 5a787a68
...@@ -2192,14 +2192,11 @@ static void create_debug_file(struct isp1362_hcd *isp1362_hcd) ...@@ -2192,14 +2192,11 @@ static void create_debug_file(struct isp1362_hcd *isp1362_hcd)
{ {
struct proc_dir_entry *pde; struct proc_dir_entry *pde;
pde = create_proc_entry(proc_filename, 0, NULL); pde = proc_create_data(proc_filename, 0, NULL, &proc_ops, isp1362_hcd);
if (pde == NULL) { if (pde == NULL) {
pr_warning("%s: Failed to create debug file '%s'\n", __func__, proc_filename); pr_warning("%s: Failed to create debug file '%s'\n", __func__, proc_filename);
return; return;
} }
pde->proc_fops = &proc_ops;
pde->data = isp1362_hcd;
isp1362_hcd->pde = pde; isp1362_hcd->pde = pde;
} }
......
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