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/ozproto.c | |
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/ozproto.c')
-rw-r--r-- | drivers/staging/ozwpan/ozproto.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/drivers/staging/ozwpan/ozproto.c b/drivers/staging/ozwpan/ozproto.c index e7138ed325dd..c1325a67d320 100644 --- a/drivers/staging/ozwpan/ozproto.c +++ b/drivers/staging/ozwpan/ozproto.c @@ -38,9 +38,13 @@ struct oz_binding { }; /* + * External variable + */ + +DEFINE_SPINLOCK(g_polling_lock); +/* * Static external variables. */ -static DEFINE_SPINLOCK(g_polling_lock); static LIST_HEAD(g_pd_list); static LIST_HEAD(g_binding); static DEFINE_SPINLOCK(g_binding_lock); @@ -794,12 +798,3 @@ int oz_get_pd_list(struct oz_mac_addr *addr, int max_count) return count; } -void oz_polling_lock_bh(void) -{ - spin_lock_bh(&g_polling_lock); -} - -void oz_polling_unlock_bh(void) -{ - spin_unlock_bh(&g_polling_lock); -} |