of/platform: teardown DMA mappings on device destruction
commit0495cb75ed301bbe6b01346cbf8bc5244a2948b2
authorWill Deacon <will.deacon@arm.com>
Fri, 16 Jan 2015 17:04:56 +0000 (16 17:04 +0000)
committerOlof Johansson <olof@lixom.net>
Wed, 21 Jan 2015 23:15:14 +0000 (21 15:15 -0800)
tree78f784a944fd9a3780b5a78eafe26910f8c1b516
parent4d4ac7aa901d43314a7642e3039be4daeb7657ba
of/platform: teardown DMA mappings on device destruction

Now that we can create and attach to IOMMU domains via of_dma_configure,
make sure we give the architecture a chance to tear them down when a
platform or amba device is destroyed.

Acked-by: Rob Herring <robh@kernel.org>
Reported-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
drivers/of/platform.c