aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRabin Vincent <rabin.vincent@stericsson.com>2011-03-02 15:02:56 +0530
committerHenrik Öhman <henrik.ohman@stericsson.com>2011-03-15 08:14:06 +0100
commitf36c1d6446c648d73aafe3336f764f29609f55d5 (patch)
treeaaae1f4517f9a0c29ef9921c3a94a59825bc810f
parentf774bb04095577cf41feee160282bc8b2b93e036 (diff)
dma40: mark the correct channel as reserved
Mark the channel number, and not the array index, as reserved. ST-Ericsson Linux next: - ST-Ericsson ID: ER326316 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I2a97c2c8e015e12603d9157c600602c39cdaf568 Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/17396 Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
-rw-r--r--drivers/dma/ste_dma40.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/ste_dma40.c b/drivers/dma/ste_dma40.c
index 53d6e402f39..27a7debc6fa 100644
--- a/drivers/dma/ste_dma40.c
+++ b/drivers/dma/ste_dma40.c
@@ -3371,7 +3371,7 @@ static int __init d40_phy_res_init(struct d40_base *base)
base->phy_res[chan].allocated_src = D40_ALLOC_PHY;
base->phy_res[chan].allocated_dst = D40_ALLOC_PHY;
- base->phy_res[i].reserved = true;
+ base->phy_res[chan].reserved = true;
num_phy_chans_avail--;
}