aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/dma')
-rw-r--r--drivers/dma/ste_dma40.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/dma/ste_dma40.c b/drivers/dma/ste_dma40.c
index 05d0a9937617..2f73e366111e 100644
--- a/drivers/dma/ste_dma40.c
+++ b/drivers/dma/ste_dma40.c
@@ -2449,9 +2449,11 @@ static int __init d40_phy_res_init(struct d40_base *base)
2449 2449
2450 /* Mark disabled channels as occupied */ 2450 /* Mark disabled channels as occupied */
2451 for (i = 0; base->plat_data->disabled_channels[i] != -1; i++) { 2451 for (i = 0; base->plat_data->disabled_channels[i] != -1; i++) {
2452 base->phy_res[i].allocated_src = D40_ALLOC_PHY; 2452 int chan = base->plat_data->disabled_channels[i];
2453 base->phy_res[i].allocated_dst = D40_ALLOC_PHY; 2453
2454 num_phy_chans_avail--; 2454 base->phy_res[chan].allocated_src = D40_ALLOC_PHY;
2455 base->phy_res[chan].allocated_dst = D40_ALLOC_PHY;
2456 num_phy_chans_avail--;
2455 } 2457 }
2456 2458
2457 dev_info(base->dev, "%d of %d physical DMA channels available\n", 2459 dev_info(base->dev, "%d of %d physical DMA channels available\n",