rk3288: power off vcodec after iommu operation
authorljf <ljf@rock-chips.com>
Thu, 17 Apr 2014 12:02:33 +0000 (20:02 +0800)
committerljf <ljf@rock-chips.com>
Fri, 18 Apr 2014 01:56:30 +0000 (09:56 +0800)
arch/arm/mach-rockchip/vcodec_service.c

index d08f8c82d20609cd9fc0b56319bf5316f22ce8ec..068029e6924cef23a6e8e677a32fa2c99e218a45 100755 (executable)
@@ -1518,9 +1518,6 @@ static int vcodec_probe(struct platform_device *pdev)
                     &debug_vcodec_fops);\r
 #endif\r
 \r
-    vpu_service_power_off(pservice);\r
-    pr_info("init success\n");\r
-\r
 #if defined(CONFIG_VCODEC_MMU) & defined(CONFIG_ION_ROCKCHIP)\r
     pservice->ion_client = rockchip_ion_client_create("vpu");\r
     if (IS_ERR(pservice->ion_client)) {\r
@@ -1544,6 +1541,9 @@ static int vcodec_probe(struct platform_device *pdev)
     }\r
 #endif\r
 \r
+    vpu_service_power_off(pservice);\r
+    pr_info("init success\n");\r
+\r
 #if HEVC_SIM_ENABLE\r
     if (pservice->hw_info->hw_id == HEVC_ID) {\r
         simulate_init(pservice);\r