From 44e8541c5e14b40a773e830df339eddbcd0cb7ec Mon Sep 17 00:00:00 2001 From: Pekka Enberg Date: Wed, 29 Oct 2008 20:10:32 +0200 Subject: 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 Signed-off-by: Pekka Enberg Signed-off-by: Greg Kroah-Hartman --- drivers/staging/winbond/mds.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'drivers/staging/winbond/mds.c') 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 -- cgit v1.2.3