diff options
author | Pekka Enberg <penberg@cs.helsinki.fi> | 2008-10-29 20:10:32 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-01-06 13:51:45 -0800 |
commit | 44e8541c5e14b40a773e830df339eddbcd0cb7ec (patch) | |
tree | d943f74f6585b3755ee35ce1b6ea5e289c29d6d0 /drivers/staging/winbond/wbhal.c | |
parent | deee7c8164e62690aefefb3503bc4c4672b3e020 (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/wbhal.c')
-rw-r--r-- | drivers/staging/winbond/wbhal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/winbond/wbhal.c b/drivers/staging/winbond/wbhal.c index 3edcc479392..100a407f49c 100644 --- a/drivers/staging/winbond/wbhal.c +++ b/drivers/staging/winbond/wbhal.c @@ -843,7 +843,7 @@ void hal_system_power_change(phw_data_t pHwData, u32 PowerState) void hal_surprise_remove( phw_data_t pHwData ) { struct wb35_adapter * adapter = pHwData->adapter; - if (OS_ATOMIC_INC( adapter, &pHwData->SurpriseRemoveCount ) == 1) { + if (atomic_inc_return( &pHwData->SurpriseRemoveCount ) == 1) { #ifdef _PE_STATE_DUMP_ WBDEBUG(("Calling hal_surprise_remove\n")); #endif |