diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-03-30 18:15:27 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-04-09 20:13:10 +0200 |
commit | 96e7d9158f5ae91accb9c81cca14bcd0c996c0cc (patch) | |
tree | 5cf70ad9323cc9e3a9b1c6c0db12e524af4ace54 /drivers/usb/host/isp1362-hcd.c | |
parent | rtl8192u: don't play with reassigning ->proc_fops, just use proc_create() (diff) | |
download | linux-96e7d9158f5ae91accb9c81cca14bcd0c996c0cc.tar.xz linux-96e7d9158f5ae91accb9c81cca14bcd0c996c0cc.zip |
isp1362-hcd: don't reimplement proc_create_data()
... especially in a racy way
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/usb/host/isp1362-hcd.c')
-rw-r--r-- | drivers/usb/host/isp1362-hcd.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/usb/host/isp1362-hcd.c b/drivers/usb/host/isp1362-hcd.c index 974480c516fa..9137caadb1c8 100644 --- a/drivers/usb/host/isp1362-hcd.c +++ b/drivers/usb/host/isp1362-hcd.c @@ -2192,14 +2192,11 @@ static void create_debug_file(struct isp1362_hcd *isp1362_hcd) { 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) { pr_warning("%s: Failed to create debug file '%s'\n", __func__, proc_filename); return; } - - pde->proc_fops = &proc_ops; - pde->data = isp1362_hcd; isp1362_hcd->pde = pde; } |