]> git.karo-electronics.de Git - karo-tx-linux.git/commit
dmaengine: cppi41: Fix an Oops happening in cppi41_dma_probe()
authorAlexandre Bailon <abailon@baylibre.com>
Wed, 5 Apr 2017 16:35:16 +0000 (18:35 +0200)
committerVinod Koul <vinod.koul@intel.com>
Thu, 6 Apr 2017 07:11:59 +0000 (12:41 +0530)
commiteda6f4e868e74adfae8ac6b06a863a090affbb14
tree8f92cf568ea226547961cbdad9e3c0272097dcb5
parentd7fd724e01939f777781a86d078c3b7142fb9c03
dmaengine: cppi41: Fix an Oops happening in cppi41_dma_probe()

This fix an Oops happening on all platforms using the old dt bindings
(all platforms but da8xx).
This update cppi41_dma_probe() to use the index variable which is
required to keep compatibility between old and new dt bindings.

Fixes: 8e3ba95f4190 ("dmaengine: cppi41: use managed functions devm_*()")
Reported-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Alexandre Bailon <abailon@baylibre.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/cppi41.c