Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 144669
b: refs/heads/master
c: f229253
h: refs/heads/master
i:
  144667: 81934dd
v: v3
  • Loading branch information
Martin Fuzzey authored and Sascha Hauer committed May 5, 2009
1 parent 6869903 commit b9378ee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 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: de0096d80980e26fab16ac3eff57f47fadad92cb
refs/heads/master: f2292532a5f0cf6359adca349cdd2a0150581937
12 changes: 4 additions & 8 deletions trunk/arch/arm/plat-mxc/dma-mx1-mx2.c
Original file line number Diff line number Diff line change
Expand Up @@ -693,12 +693,15 @@ int imx_dma_request(int channel, const char *name)
local_irq_restore(flags);
return -EBUSY;
}
memset(imxdma, 0, sizeof(imxdma));
imxdma->name = name;
local_irq_restore(flags); /* request_irq() can block */

#ifdef CONFIG_ARCH_MX2
ret = request_irq(MXC_INT_DMACH0 + channel, dma_irq_handler, 0, "DMA",
NULL);
if (ret) {
local_irq_restore(flags);
imxdma->name = NULL;
printk(KERN_CRIT "Can't register IRQ %d for DMA channel %d\n",
MXC_INT_DMACH0 + channel, channel);
return ret;
Expand All @@ -708,13 +711,6 @@ int imx_dma_request(int channel, const char *name)
imxdma->watchdog.data = channel;
#endif

imxdma->name = name;
imxdma->irq_handler = NULL;
imxdma->err_handler = NULL;
imxdma->data = NULL;
imxdma->sg = NULL;

local_irq_restore(flags);
return ret;
}
EXPORT_SYMBOL(imx_dma_request);
Expand Down

0 comments on commit b9378ee

Please sign in to comment.