diff options
author | Pekka Enberg <penberg@cs.helsinki.fi> | 2008-10-29 18:10:32 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-01-06 21:51:45 (GMT) |
commit | 44e8541c5e14b40a773e830df339eddbcd0cb7ec (patch) | |
tree | d943f74f6585b3755ee35ce1b6ea5e289c29d6d0 /drivers/staging/winbond/mds.c | |
parent | deee7c8164e62690aefefb3503bc4c4672b3e020 (diff) | |
download | linux-44e8541c5e14b40a773e830df339eddbcd0cb7ec.tar.xz |
Staging: w35und: remove atomic op wrappers
Use the kernel provided atomic op functions and remove the OS_ATOMIC and
related wrapper macros.
Acked-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/winbond/mds.c')
-rw-r--r-- | drivers/staging/winbond/mds.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/winbond/mds.c b/drivers/staging/winbond/mds.c index 8d3c8ad..20008e3 100644 --- a/drivers/staging/winbond/mds.c +++ b/drivers/staging/winbond/mds.c @@ -6,7 +6,7 @@ Mds_reset_descriptor(struct wb35_adapter * adapter) PMDS pMds = &adapter->Mds; pMds->TxPause = 0; - pMds->TxThreadCount = 0; + atomic_set(&pMds->TxThreadCount, 0); pMds->TxFillIndex = 0; pMds->TxDesIndex = 0; pMds->ScanTxPause = 0; @@ -52,7 +52,7 @@ Mds_Tx(struct wb35_adapter * adapter) return; //Only one thread can be run here - if (!OS_ATOMIC_INC( adapter, &pMds->TxThreadCount) == 1) + if (!atomic_inc_return(&pMds->TxThreadCount) == 1) goto cleanup; // Start to fill the data @@ -172,7 +172,7 @@ Mds_Tx(struct wb35_adapter * adapter) Wb35Tx_start(pHwData); cleanup: - OS_ATOMIC_DEC( adapter, &pMds->TxThreadCount ); + atomic_dec(&pMds->TxThreadCount); } void |