|
@@ -1922,7 +1922,7 @@ void arm_iommu_detach_device(struct device *dev)
|
|
|
|
|
|
iommu_detach_device(mapping->domain, dev);
|
|
iommu_detach_device(mapping->domain, dev);
|
|
kref_put(&mapping->kref, release_iommu_mapping);
|
|
kref_put(&mapping->kref, release_iommu_mapping);
|
|
- mapping = NULL;
|
|
|
|
|
|
+ dev->archdata.mapping = NULL;
|
|
set_dma_ops(dev, NULL);
|
|
set_dma_ops(dev, NULL);
|
|
|
|
|
|
pr_debug("Detached IOMMU controller from %s device.\n", dev_name(dev));
|
|
pr_debug("Detached IOMMU controller from %s device.\n", dev_name(dev));
|