dmaengine: edma: fixed wrongly initialized data parameter to the edma callback
authorPetr Kulhavy <petr@barix.com>
Mon, 23 Mar 2015 20:35:01 +0000 (21:35 +0100)
committerVinod Koul <vinod.koul@intel.com>
Wed, 1 Apr 2015 03:45:57 +0000 (09:15 +0530)
commitab7add30ce63a7147f045f00c65a44c0f14ad6b2
tree45f8d52a4256b0e1333b301645834bbc37be0626
parentde6b641e2d23d116dcf6b6a67e2ee4856e3c3026
dmaengine: edma: fixed wrongly initialized data parameter to the edma callback

The "data" parameter passed indirectly to the edma_callback() should be
edma_chan and not the dma_chan.

This bug was so far harmless since the offset of struct dma_chan within struct
edma_chan is 0. However as soon as someone changes struct edma_chan this would
cause troubles.

Signed-off-by: Petr Kulhavy <petr@barix.com>
Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/edma.c