summaryrefslogtreecommitdiff
path: root/arch/frv/kernel/dma.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/frv/kernel/dma.c')
-rw-r--r--arch/frv/kernel/dma.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/frv/kernel/dma.c b/arch/frv/kernel/dma.c
index 156184e17..370dc9fa0 100644
--- a/arch/frv/kernel/dma.c
+++ b/arch/frv/kernel/dma.c
@@ -109,13 +109,13 @@ static struct frv_dma_channel frv_dma_channels[FRV_DMA_NCHANS] = {
static DEFINE_RWLOCK(frv_dma_channels_lock);
-unsigned long frv_dma_inprogress;
+unsigned int frv_dma_inprogress;
#define frv_clear_dma_inprogress(channel) \
- atomic_clear_mask(1 << (channel), &frv_dma_inprogress);
+ (void)__atomic32_fetch_and(~(1 << (channel)), &frv_dma_inprogress);
#define frv_set_dma_inprogress(channel) \
- atomic_set_mask(1 << (channel), &frv_dma_inprogress);
+ (void)__atomic32_fetch_or(1 << (channel), &frv_dma_inprogress);
/*****************************************************************************/
/*