mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
Merge "iommu/arm-smmu: Fix memory leak with respect to TBU data structures"
This commit is contained in:
commit
0dbcf5d8eb
1 changed files with 9 additions and 0 deletions
|
|
@ -5674,12 +5674,21 @@ static int qsmmuv500_tbu_probe(struct platform_device *pdev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int qsmmuv500_tbu_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct qsmmuv500_tbu_device *tbu = dev_get_drvdata(&pdev->dev);
|
||||
|
||||
arm_smmu_exit_power_resources(tbu->pwr);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct platform_driver qsmmuv500_tbu_driver = {
|
||||
.driver = {
|
||||
.name = "qsmmuv500-tbu",
|
||||
.of_match_table = of_match_ptr(qsmmuv500_tbu_of_match),
|
||||
},
|
||||
.probe = qsmmuv500_tbu_probe,
|
||||
.remove = qsmmuv500_tbu_remove,
|
||||
};
|
||||
|
||||
MODULE_DESCRIPTION("IOMMU API for ARM architected SMMU implementations");
|
||||
|
|
|
|||
Loading…
Reference in a new issue