From: Jacob Chen Date: Thu, 5 Jan 2017 03:40:29 +0000 (+0800) Subject: iommu/rockchip: correct pm runtime when remove device X-Git-Tag: firefly_0821_release~822 X-Git-Url: http://plrg.eecs.uci.edu/git/?p=firefly-linux-kernel-4.4.55.git;a=commitdiff_plain;h=cce453c22d47914ae858ce70f577b9f4e8f2d3ee iommu/rockchip: correct pm runtime when remove device Change-Id: Ib4d2e80c3fcbe614973fa5e6cb64b4d15c7db3e0 Signed-off-by: Jacob Chen --- diff --git a/drivers/iommu/rockchip-iommu.c b/drivers/iommu/rockchip-iommu.c index ad914dd17443..c4c2c54a6127 100644 --- a/drivers/iommu/rockchip-iommu.c +++ b/drivers/iommu/rockchip-iommu.c @@ -1216,7 +1216,7 @@ static int rk_iommu_probe(struct platform_device *pdev) static int rk_iommu_remove(struct platform_device *pdev) { - pm_runtime_put(&pdev->dev); + pm_runtime_disable(&pdev->dev); return 0; }