staging: dgap: get rid of DGAP_LOCK and DGAP_UNLOCK macros

This patch replaces the DGAP_LOCK and DGAP_UNLOCK macros with
spin_lock_irqsave spin_unlock_irqrestore.

Signed-off-by: Mark Hounschell <markh@compro.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Mark Hounschell 2014-03-19 11:10:51 -04:00 committed by Greg Kroah-Hartman
parent 8cdd76391e
commit c43846a91f
2 changed files with 222 additions and 227 deletions

File diff suppressed because it is too large Load Diff

View File

@ -194,13 +194,6 @@ typedef unsigned char uchar;
#define VPDSIZE (512)
/*
* Lock function/defines.
* Makes spotting lock/unlock locations easier.
*/
# define DGAP_LOCK(x,y) spin_lock_irqsave(&(x), y)
# define DGAP_UNLOCK(x,y) spin_unlock_irqrestore(&(x), y)
/************************************************************************
* FEP memory offsets
************************************************************************/