Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 106299
b: refs/heads/master
c: 377d43e
h: refs/heads/master
i:
  106297: 30fb8be
  106295: adbe5fb
v: v3
  • Loading branch information
Michael Hennerich authored and Bryan Wu committed Jul 26, 2008
1 parent ae429ce commit 719fcfe
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b1b154e503a0e590eb9e189586783dc8750f910e
refs/heads/master: 377d43e7d07fc9a64eb162c6f70e6d1961604629
8 changes: 8 additions & 0 deletions trunk/arch/blackfin/kernel/bfin_dma_5xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,11 @@ int blackfin_dma_suspend(void)
{
int i;

#ifdef CONFIG_BF561 /* IMDMA channels doesn't have a PERIPHERAL_MAP */
for (i = 0; i <= CH_MEM_STREAM3_SRC; i++) {
#else
for (i = 0; i < MAX_BLACKFIN_DMA_CHANNEL; i++) {
#endif
if (dma_ch[i].chan_status == DMA_CHANNEL_ENABLED) {
printk(KERN_ERR "DMA Channel %d failed to suspend\n", i);
return -EBUSY;
Expand All @@ -493,7 +497,11 @@ void blackfin_dma_resume(void)
{
int i;

#ifdef CONFIG_BF561 /* IMDMA channels doesn't have a PERIPHERAL_MAP */
for (i = 0; i <= CH_MEM_STREAM3_SRC; i++)
#else
for (i = 0; i < MAX_BLACKFIN_DMA_CHANNEL; i++)
#endif
dma_ch[i].regs->peripheral_map = dma_ch[i].saved_peripheral_map;
}
#endif
Expand Down

0 comments on commit 719fcfe

Please sign in to comment.