diff options
author | Surendra Patil | 2014-03-04 08:57:47 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2014-03-05 01:49:37 +0100 |
commit | 6b029336d93d8f9a94b0256b1f7d9c1768eedba7 (patch) | |
tree | 8786c0d2d50c5c789e78c5d3d0311bd42f4abf33 /drivers/staging/ozwpan/ozpd.h | |
parent | staging: octeon-ethernet: add missing include (diff) | |
download | kernel-qcow2-linux-6b029336d93d8f9a94b0256b1f7d9c1768eedba7.tar.gz kernel-qcow2-linux-6b029336d93d8f9a94b0256b1f7d9c1768eedba7.tar.xz kernel-qcow2-linux-6b029336d93d8f9a94b0256b1f7d9c1768eedba7.zip |
drivers:staging:ozwpan Replaced wrapper functions with actual spin lock function
* Replaced all the spin lock/unlock wrappers from oz_polling_lock_bh()
and oz_polllin_unlock_bh() with spin_lock_bh(&g_polling_lock) and
spin_unlock_bh(&g_polling_lock).Completely erased the wrappers defination
and declaration.
* declared g_polling_lock as global variable in header file and added comments to it.
Module builded successfully with sparse without warnings.
Signed-off-by: Surendra Patil <surendra.tux@gmail.com>
Acked-by: Rupesh Gujare <rupesh.gujare@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/ozwpan/ozpd.h')
-rw-r--r-- | drivers/staging/ozwpan/ozpd.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/staging/ozwpan/ozpd.h b/drivers/staging/ozwpan/ozpd.h index 12c712956888..56e6fdf9b0bf 100644 --- a/drivers/staging/ozwpan/ozpd.h +++ b/drivers/staging/ozwpan/ozpd.h @@ -22,6 +22,11 @@ #define OZ_TIMER_HEARTBEAT 2 #define OZ_TIMER_STOP 3 +/* + *External spinlock variable + */ +extern spinlock_t g_polling_lock; + /* Data structure that hold information on a frame for transmisson. This is * built when the frame is first transmitted and is used to rebuild the frame * if a re-transmission is required. |