Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3beddbd9 authored by Patrick Daly's avatar Patrick Daly
Browse files

drivers: slimbus: Cleanup unused APIs



Since slimbus does not call __depr_arm_iommu_create_mapping during
probe, it does not need to call __depr_arm_iommu_release_mapping during
remove.

Change-Id: I2b1a2095bc352c9262610d58b23f9c15936b8310
Signed-off-by: default avatarPatrick Daly <pdaly@codeaurora.org>
parent 5dc7d771
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -2036,10 +2036,6 @@ static int ngd_slim_remove(struct platform_device *pdev)
	struct msm_slim_ctrl *dev = platform_get_drvdata(pdev);

	ngd_slim_enable(dev, false);
	if (!IS_ERR_OR_NULL(dev->iommu_desc.iommu_map)) {
		__depr_arm_iommu_detach_device(dev->iommu_desc.cb_dev);
		__depr_arm_iommu_release_mapping(dev->iommu_desc.iommu_map);
	}
	if (dev->sysfs_created)
		sysfs_remove_file(&dev->dev->kobj,
				&dev_attr_debug_mask.attr);
+0 −1
Original line number Diff line number Diff line
@@ -257,7 +257,6 @@ struct msm_slim_bulk_wr {

struct msm_slim_iommu {
	struct device			*cb_dev;
	struct dma_iommu_mapping	*iommu_map;
	bool				s1_bypass;
};