dmaengine: rcar-dmac: unmap slave resource when channel is freed
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Wed, 11 Jan 2017 14:39:31 +0000 (15:39 +0100)
committerVinod Koul <vinod.koul@intel.com>
Fri, 13 Jan 2017 06:44:28 +0000 (12:14 +0530)
commit3139dc8ded6f27552a248d23fe9f086e3027fa12
tree792ee80b684775c3790f5c662601ed1e7da05f2b
parent527a27591312e4b3a0f8179f321f9e85c0850df0
dmaengine: rcar-dmac: unmap slave resource when channel is freed

The slave mapping should be removed together with other channel
resources when the channel is freed. If it's not unmapped it will hang
around forever after the channel is freed.

Fixes: 9f878603dbdb7db3 ("dmaengine: rcar-dmac: add iommu support for slave transfers")
Reported-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/sh/rcar-dmac.c