]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: Remove pointless WARN_ON in DMA teardown
authorRobin Murphy <robin.murphy@arm.com>
Wed, 26 Oct 2016 18:19:31 +0000 (19:19 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 7 Nov 2016 18:15:03 +0000 (18:15 +0000)
commita7395d4b5cc0e6b5e6fc713c314236743541801c
treee609cf6a1b848618d1405041bf965ec7e10c0952
parent2c59acc52f56d67bbc07dfcadc2255ab23c4b9cf
arm64: Remove pointless WARN_ON in DMA teardown

We expect arch_teardown_dma_ops() to be called very late in a device's
life, after it has been removed from its bus, and thus after the IOMMU
bus notifier has run. As such, even if this funny little check did make
sense, it's unlikely to achieve what it thinks it's trying to do anyway.
It's a residual trace of an earlier implementation which didn't belong
here from the start; belatedly snuff it out.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/mm/dma-mapping.c