Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 127102
b: refs/heads/master
c: 9b01140
h: refs/heads/master
v: v3
  • Loading branch information
Mike Frysinger authored and Bryan Wu committed Jan 7, 2009
1 parent fd5ecc8 commit 464d9e4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 68532bdac35c9cc467c14cb9ea675835e07b5619
refs/heads/master: 9b011407d653b92191aa4993222523039d44af52
1 change: 0 additions & 1 deletion trunk/arch/blackfin/include/asm/dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ struct dma_channel {
struct dmasg *sg; /* large mode descriptor */
unsigned int ctrl_num; /* controller number */
unsigned int irq;
irq_handler_t irq_callback;
void *data;
unsigned int dma_enable_flag;
unsigned int loopback_flag;
Expand Down
5 changes: 2 additions & 3 deletions trunk/arch/blackfin/kernel/bfin_dma_5xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ int request_dma(unsigned int channel, const char *device_id)
#endif

dma_ch[channel].device_id = device_id;
dma_ch[channel].irq_callback = NULL;
dma_ch[channel].irq = 0;

/* This is to be enabled by putting a restriction -
* you have to request DMA, before doing any operations on
Expand Down Expand Up @@ -169,7 +169,6 @@ int set_dma_callback(unsigned int channel, irq_handler_t callback, void *data)
"Request irq in DMA engine failed.\n");
return -EPERM;
}
dma_ch[channel].irq_callback = callback;
}
return 0;
}
Expand All @@ -185,7 +184,7 @@ void free_dma(unsigned int channel)
disable_dma(channel);
clear_dma_buffer(channel);

if (dma_ch[channel].irq_callback != NULL)
if (dma_ch[channel].irq)
free_irq(dma_ch[channel].irq, dma_ch[channel].data);

/* Clear the DMA Variable in the Channel */
Expand Down

0 comments on commit 464d9e4

Please sign in to comment.