diff options
author | John W. Linville <linville@tuxdriver.com> | 2006-07-27 18:10:00 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2006-07-27 18:24:54 -0400 |
commit | f1207ba1a756610a9880fe4b70d7f0e9f0627073 (patch) | |
tree | f6840b54e05cbffb70e64e9646245b0068217b03 /drivers/net/wireless/bcm43xx/bcm43xx_debugfs.c | |
parent | 27be44ff8ee29e945adad226cc360c9278239d17 (diff) |
[PATCH] bcm43xx: fix-up build breakage from merging patches out of order
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/bcm43xx/bcm43xx_debugfs.c')
-rw-r--r-- | drivers/net/wireless/bcm43xx/bcm43xx_debugfs.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/wireless/bcm43xx/bcm43xx_debugfs.c b/drivers/net/wireless/bcm43xx/bcm43xx_debugfs.c index 634d3d8093cf..923275ea0789 100644 --- a/drivers/net/wireless/bcm43xx/bcm43xx_debugfs.c +++ b/drivers/net/wireless/bcm43xx/bcm43xx_debugfs.c | |||
@@ -331,7 +331,8 @@ static ssize_t restart_write_file(struct file *file, const char __user *user_buf | |||
331 | res = -EFAULT; | 331 | res = -EFAULT; |
332 | goto out_up; | 332 | goto out_up; |
333 | } | 333 | } |
334 | bcm43xx_lock_irqsafe(bcm, flags); | 334 | mutex_lock(&(bcm)->mutex); |
335 | spin_lock_irqsave(&(bcm)->irq_lock, flags); | ||
335 | if (bcm43xx_status(bcm) != BCM43xx_STAT_INITIALIZED) { | 336 | if (bcm43xx_status(bcm) != BCM43xx_STAT_INITIALIZED) { |
336 | printk(KERN_INFO PFX "debugfs: Board not initialized.\n"); | 337 | printk(KERN_INFO PFX "debugfs: Board not initialized.\n"); |
337 | res = -EFAULT; | 338 | res = -EFAULT; |
@@ -344,7 +345,8 @@ static ssize_t restart_write_file(struct file *file, const char __user *user_buf | |||
344 | res = -EINVAL; | 345 | res = -EINVAL; |
345 | 346 | ||
346 | out_unlock: | 347 | out_unlock: |
347 | bcm43xx_unlock_irqsafe(bcm, flags); | 348 | spin_unlock_irqrestore(&(bcm)->irq_lock, flags); |
349 | mutex_unlock(&(bcm)->mutex); | ||
348 | out_up: | 350 | out_up: |
349 | up(&big_buffer_sem); | 351 | up(&big_buffer_sem); |
350 | return res; | 352 | return res; |