Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 36283
b: refs/heads/master
c: 9e3043c
h: refs/heads/master
i:
  36281: 1f6872a
  36279: b57f865
v: v3
  • Loading branch information
Paul Mundt committed Sep 27, 2006
1 parent 8134330 commit 7595c8c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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: e2d1864da5bfa419a108f42c0615f69432b1b876
refs/heads/master: 9e3043c091819729ecf4fc5063d0a2d0954dfd7f
7 changes: 5 additions & 2 deletions trunk/arch/sh/drivers/dma/dma-sh.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ static int sh_dmac_request_dma(struct dma_channel *chan)
{
char name[32];

if (unlikely(!chan->flags & DMA_TEI_CAPABLE))
return 0;

snprintf(name, sizeof(name), "DMAC Transfer End (Channel %d)",
chan->chan);

Expand Down Expand Up @@ -255,7 +258,7 @@ static int __init sh_dmac_init(void)
#ifdef CONFIG_CPU_SH4
make_ipr_irq(DMAE_IRQ, DMA_IPR_ADDR, DMA_IPR_POS, DMA_PRIORITY);
i = request_irq(DMAE_IRQ, dma_err, IRQF_DISABLED, "DMAC Address Error", 0);
if (i < 0)
if (unlikely(i < 0))
return i;
#endif

Expand All @@ -270,7 +273,7 @@ static int __init sh_dmac_init(void)
* been set.
*/
i = dmaor_reset();
if (i < 0)
if (unlikely(i != 0))
return i;

return register_dmac(info);
Expand Down

0 comments on commit 7595c8c

Please sign in to comment.