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

Commit 2a637601 authored by Peng Fan's avatar Peng Fan Committed by Patrick Daly
Browse files

iommu/arm-smmu: Drop devm_free_irq when driver detach



There is no need to call devm_free_irq when driver detach.
devres_release_all which is called after 'drv->remove' will
release all managed resources.

Change-Id: Ib25f22f8517c697593cb045f00b3638ddd647f81
Signed-off-by: default avatarPeng Fan <van.freenix@gmail.com>
Reviewed-by: default avatarRobin Murphy <robin.murphy@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
Git-commit: e2d42311
Git-repo: https://source.codeaurora.org/quic/la/kernel/msm-4.4


Signed-off-by: default avatarPatrick Daly <pdaly@codeaurora.org>
parent 3479e4d0
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -3754,7 +3754,6 @@ static int arm_smmu_device_dt_probe(struct platform_device *pdev)

static int arm_smmu_device_remove(struct platform_device *pdev)
{
	int i;
	struct device *dev = &pdev->dev;
	struct arm_smmu_device *curr, *smmu = NULL;
	struct rb_node *node;
@@ -3784,9 +3783,6 @@ static int arm_smmu_device_remove(struct platform_device *pdev)
	if (!bitmap_empty(smmu->context_map, ARM_SMMU_MAX_CBS))
		dev_err(dev, "removing device with active domains!\n");

	for (i = 0; i < smmu->num_global_irqs; ++i)
		devm_free_irq(smmu->dev, smmu->irqs[i], smmu);

	idr_destroy(&smmu->asid_idr);

	/* Turn the thing off */