diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-04-07 15:48:45 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-04-07 15:48:45 -0400 |
commit | 26cf445721763d61b08ce394f8bdbd4c5610b563 (patch) | |
tree | a26099dd232b5d0071604787a9eb27b37602645f /drivers/dma | |
parent | 8b9686ff4ddfdf45662024edd567920e6db87beb (diff) | |
parent | 99b662e511e08230e8422e77cbe4fd31ed173df6 (diff) |
Merge branch 'sh-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6
* 'sh-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6:
sh: select ARCH_NO_SYSDEV_OPS.
sh: fix build error in board-sh7757lcr.c
sh: landisk: Remove whitespace
sh: landisk: Remove mv_nr_irqs
sh: sh-sci: Fix double initialization by serial_console_setup
serial: sh-sci: prevent setup of uninitialized serial console
dma: shdma: add checking the DMAOR_AE in sh_dmae_err
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/shdma.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/dma/shdma.c b/drivers/dma/shdma.c index 6451b581a70b..d50da41ac328 100644 --- a/drivers/dma/shdma.c +++ b/drivers/dma/shdma.c | |||
@@ -865,7 +865,12 @@ static unsigned int sh_dmae_reset(struct sh_dmae_device *shdev) | |||
865 | 865 | ||
866 | static irqreturn_t sh_dmae_err(int irq, void *data) | 866 | static irqreturn_t sh_dmae_err(int irq, void *data) |
867 | { | 867 | { |
868 | return IRQ_RETVAL(sh_dmae_reset(data)); | 868 | struct sh_dmae_device *shdev = data; |
869 | |||
870 | if (dmaor_read(shdev) & DMAOR_AE) | ||
871 | return IRQ_RETVAL(sh_dmae_reset(data)); | ||
872 | else | ||
873 | return IRQ_NONE; | ||
869 | } | 874 | } |
870 | 875 | ||
871 | static void dmae_do_tasklet(unsigned long data) | 876 | static void dmae_do_tasklet(unsigned long data) |