From 8449a93af7e4569639b8d94699c720b8b93956b0 Mon Sep 17 00:00:00 2001 From: ljf Date: Thu, 15 May 2014 15:24:45 +0800 Subject: [PATCH] rk3288: deactivate iommu before power off, get rid of warnning from iommu module --- arch/arm/mach-rockchip/vcodec_service.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/mach-rockchip/vcodec_service.c b/arch/arm/mach-rockchip/vcodec_service.c index 4b7ee70ccdc6..14b1a5b15055 100755 --- a/arch/arm/mach-rockchip/vcodec_service.c +++ b/arch/arm/mach-rockchip/vcodec_service.c @@ -551,6 +551,12 @@ static void vpu_service_power_off(struct vpu_service_info *pservice) pr_alert("alert: delay 50 ms for running task\n"); vpu_service_dump(pservice); } + +#if defined(CONFIG_VCODEC_MMU) + if (pservice->mmu_dev) { + iovmm_deactivate(pservice->dev); + } +#endif printk("%s: power off...", dev_name(pservice->dev)); udelay(10); @@ -565,12 +571,6 @@ static void vpu_service_power_off(struct vpu_service_info *pservice) #endif wake_unlock(&pservice->wake_lock); printk("done\n"); - -#if defined(CONFIG_VCODEC_MMU) - if (pservice->mmu_dev) { - iovmm_deactivate(pservice->dev); - } -#endif } static inline void vpu_queue_power_off_work(struct vpu_service_info *pservice) -- 2.34.1