aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonas Aaberg <jonas.aberg@stericsson.com>2010-08-09 12:07:54 +0000
committerDan Williams <dan.j.williams@intel.com>2010-09-22 14:53:45 -0700
commit1b00348d5d0b3423fe21f499bf30d40a4d1dc594 (patch)
tree6fb57150aaa04d582b860178572405492a7c3321
parentbe8cb7dfd92420b12dfd6831c2d638f4f46bdfdf (diff)
downloadmrst-s0i3-test-1b00348d5d0b3423fe21f499bf30d40a4d1dc594.tar.gz
mrst-s0i3-test-1b00348d5d0b3423fe21f499bf30d40a4d1dc594.tar.xz
mrst-s0i3-test-1b00348d5d0b3423fe21f499bf30d40a4d1dc594.zip
DMAENGINE: ste_dma40: No need reading, masking and setting a set register
Removes an unnecessary register read and a few lines of code. Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com> Signed-off-by: Linus Walleij <linus.walleij@stericsson.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
-rw-r--r--drivers/dma/ste_dma40.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/dma/ste_dma40.c b/drivers/dma/ste_dma40.c
index 8aff8659414..538c35d05a5 100644
--- a/drivers/dma/ste_dma40.c
+++ b/drivers/dma/ste_dma40.c
@@ -915,7 +915,6 @@ static irqreturn_t d40_handle_interrupt(int irq, void *data)
int i;
u32 regs[ARRAY_SIZE(il)];
- u32 tmp;
u32 idx;
u32 row;
long chan = -1;
@@ -942,9 +941,7 @@ static irqreturn_t d40_handle_interrupt(int irq, void *data)
idx = chan & (BITS_PER_LONG - 1);
/* ACK interrupt */
- tmp = readl(base->virtbase + il[row].clr);
- tmp |= 1 << idx;
- writel(tmp, base->virtbase + il[row].clr);
+ writel(1 << idx, base->virtbase + il[row].clr);
if (il[row].offset == D40_PHY_CHAN)
d40c = base->lookup_phy_chans[idx];