|
@@ -1241,6 +1241,12 @@ err_unprepare_clocks:
|
|
|
|
|
|
static void rk_iommu_shutdown(struct platform_device *pdev)
|
|
static void rk_iommu_shutdown(struct platform_device *pdev)
|
|
{
|
|
{
|
|
|
|
+ struct rk_iommu *iommu = platform_get_drvdata(pdev);
|
|
|
|
+ int i = 0, irq;
|
|
|
|
+
|
|
|
|
+ while ((irq = platform_get_irq(pdev, i++)) != -ENXIO)
|
|
|
|
+ devm_free_irq(iommu->dev, irq, iommu);
|
|
|
|
+
|
|
pm_runtime_force_suspend(&pdev->dev);
|
|
pm_runtime_force_suspend(&pdev->dev);
|
|
}
|
|
}
|
|
|
|
|