From: Wolfram Sang (Renesas) Date: Tue, 18 Dec 2018 23:12:07 +0000 (+0100) Subject: ARM: 8818/1: dma-mapping: update comment about handling dma_ops when detaching from... X-Git-Tag: v5.1-rc1~18^2^2~22 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4a4d68fc2657df9a2b4f114081141e2599804586;p=thirdparty%2Fkernel%2Flinux.git ARM: 8818/1: dma-mapping: update comment about handling dma_ops when detaching from IOMMU Update the comment because we don't set the pointer to NULL anymore. Also use the correct pointer name 'dma_ops' instead of 'dma_map_ops'. Fixes: 1874619a7df4 ("ARM: dma-mapping: Set proper DMA ops in arm_iommu_detach_device()") Signed-off-by: Wolfram Sang Reviewed-by: Geert Uytterhoeven Signed-off-by: Russell King --- diff --git a/arch/arm/mm/dma-mapping.c b/arch/arm/mm/dma-mapping.c index f1e2922e447cd..fae7465767b9c 100644 --- a/arch/arm/mm/dma-mapping.c +++ b/arch/arm/mm/dma-mapping.c @@ -2277,7 +2277,7 @@ EXPORT_SYMBOL_GPL(arm_iommu_attach_device); * @dev: valid struct device pointer * * Detaches the provided device from a previously attached map. - * This voids the dma operations (dma_map_ops pointer) + * This overwrites the dma_ops pointer with appropriate non-IOMMU ops. */ void arm_iommu_detach_device(struct device *dev) {