aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging/winbond/linux/wb35reg.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/linux/wb35reg.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/linux/wb35reg.c')
-rw-r--r--drivers/staging/winbond/linux/wb35reg.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/winbond/linux/wb35reg.c b/drivers/staging/winbond/linux/wb35reg.c
index 56ad504bb06..6215e3ca418 100644
--- a/drivers/staging/winbond/linux/wb35reg.c
+++ b/drivers/staging/winbond/linux/wb35reg.c
@@ -386,11 +386,11 @@ Wb35Reg_EP0VM_start( phw_data_t pHwData )
{
struct wb35_reg *reg = &pHwData->reg;
- if (OS_ATOMIC_INC( pHwData->adapter, &reg->RegFireCount) == 1) {
+ if (atomic_inc_return(&reg->RegFireCount) == 1) {
reg->EP0vm_state = VM_RUNNING;
Wb35Reg_EP0VM(pHwData);
} else
- OS_ATOMIC_DEC( pHwData->adapter, &reg->RegFireCount );
+ atomic_dec(&reg->RegFireCount);
}
void
@@ -447,7 +447,7 @@ Wb35Reg_EP0VM(phw_data_t pHwData )
cleanup:
reg->EP0vm_state = VM_STOP;
- OS_ATOMIC_DEC( pHwData->adapter, &reg->RegFireCount );
+ atomic_dec(&reg->RegFireCount);
}
@@ -465,7 +465,7 @@ Wb35Reg_EP0VM_complete(struct urb *urb)
if (pHwData->SurpriseRemove) { // Let WbWlanHalt to handle surprise remove
reg->EP0vm_state = VM_STOP;
- OS_ATOMIC_DEC( pHwData->adapter, &reg->RegFireCount );
+ atomic_dec(&reg->RegFireCount);
} else {
// Complete to send, remove the URB from the first
spin_lock_irq( &reg->EP0VM_spin_lock );