arm64: dma-mapping: fix handling of devices registered before arch_initcall
authorMarek Szyprowski <m.szyprowski@samsung.com>
Tue, 16 Feb 2016 14:14:44 +0000 (15:14 +0100)
committerWill Deacon <will.deacon@arm.com>
Wed, 17 Feb 2016 11:48:01 +0000 (11:48 +0000)
commit722ec35f7faefcc34d12616eca7976a848870f9d
treed511cf83919ccab129e16b5453c620b608a471e8
parent7f4e346263f59ff50b531dda94609fb13ca12401
arm64: dma-mapping: fix handling of devices registered before arch_initcall

This patch ensures that devices, which got registered before arch_initcall
will be handled correctly by IOMMU-based DMA-mapping code.

Cc: <stable@vger.kernel.org>
Fixes: 13b8629f6511 ("arm64: Add IOMMU dma_ops")
Acked-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/mm/dma-mapping.c