Skip to content

Commit

Permalink
CRIS v32: remove some double unlocks
Browse files Browse the repository at this point in the history
We unlocked a few lines earlier so we can delete these unlocks.

Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Jesper Nilsson <[email protected]>
  • Loading branch information
Dan Carpenter authored and Jesper Nilsson committed Sep 23, 2016
1 parent e1ae7ed commit a85f305
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion arch/cris/arch-v32/mach-a3/dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ int crisv32_request_dma(unsigned int dmanr, const char *device_id,

if (options & DMA_PANIC_ON_ERROR)
panic("request_dma error!");
spin_unlock_irqrestore(&dma_lock, flags);
return -EBUSY;
}
clk_ctrl = REG_RD(clkgen, regi_clkgen, rw_clk_ctrl);
Expand Down
1 change: 0 additions & 1 deletion arch/cris/arch-v32/mach-fs/dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ int crisv32_request_dma(unsigned int dmanr, const char *device_id,
}
if (options & DMA_PANIC_ON_ERROR)
panic("request_dma error!");
spin_unlock_irqrestore(&dma_lock, flags);
return -EBUSY;
}
clk_ctrl = REG_RD(config, regi_config, rw_clk_ctrl);
Expand Down

0 comments on commit a85f305

Please sign in to comment.