Skip to content

Commit

Permalink
DMAENGINE: ste_dma40: No need reading, masking and setting a set regi…
Browse files Browse the repository at this point in the history
…ster

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>
  • Loading branch information
Jonas Aaberg authored and Dan Williams committed Sep 22, 2010
1 parent be8cb7d commit 1b00348
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/dma/ste_dma40.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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];
Expand Down

0 comments on commit 1b00348

Please sign in to comment.