summaryrefslogtreecommitdiff
path: root/drivers/staging/winbond/mds.c
diff options
context:
space:
mode:
authorPekka Enberg <penberg@cs.helsinki.fi>2008-10-29 20:10:32 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2009-01-06 13:51:45 -0800
commit44e8541c5e14b40a773e830df339eddbcd0cb7ec (patch)
treed943f74f6585b3755ee35ce1b6ea5e289c29d6d0 /drivers/staging/winbond/mds.c
parentdeee7c8164e62690aefefb3503bc4c4672b3e020 (diff)
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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/winbond/mds.c b/drivers/staging/winbond/mds.c
index 8d3c8adf4fa..20008e35fe0 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