Remove conditional runtime PM code.
Change-Id: Id8c12b806217bba6f242e926e4d88ef74a567289
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
if (!finfo->is_caldata_read) {
if (finfo->bin_start_addr != 0x80000) {
-#if defined(CONFIG_PM_RUNTIME)
pr_debug("pm_runtime_suspended = %d\n",
pm_runtime_suspended(is_dev));
pm_runtime_get_sync(is_dev);
-#else
- fimc_is_runtime_resume(is_dev);
- printk(KERN_INFO "%s - fimc_is runtime resume complete\n", __func__);
-#endif
fimc_is_sec_fw_sel(sysfs_core, is_dev, fw_name, setf_name, false);
fimc_is_sec_concord_fw_sel(sysfs_core, is_dev, fw_name, master_setf_name, mode_setf_name);
-#if defined(CONFIG_PM_RUNTIME)
pm_runtime_put_sync(is_dev);
pr_debug("pm_runtime_suspended = %d\n",
pm_runtime_suspended(is_dev));
-#else
- fimc_is_runtime_suspend(is_dev);
-#endif
}
}
return 0;
vb2_ion_attach_iommu(core->mem.alloc_ctx);
#endif
-#if defined(CONFIG_PM_RUNTIME)
pm_runtime_enable(&pdev->dev);
-#endif
if (camera_class == NULL) {
camera_class = class_create(THIS_MODULE, "camera");
return 0;
p_err5:
-#if defined(CONFIG_PM_RUNTIME)
__pm_runtime_disable(&pdev->dev, false);
-#endif
p_err4:
v4l2_device_unregister(&core->v4l2_dev);
p_err3:
device->companion_status = FIMC_IS_COMPANION_OPENNING;
core->running_rear_camera = true;
-#if defined(CONFIG_PM_RUNTIME)
pm_runtime_get_sync(&device->pdev->dev);
-#else
- fimc_is_companion_runtime_resume(&device->pdev->dev);
-#endif
ret = fimc_is_sec_fw_sel(core, &device->pdev->dev, fw_name, setf_name, false);
if (ret < 0) {
err("failed to select firmware (%d)", ret);
return ret;
p_err_pm:
-#if defined(CONFIG_PM_RUNTIME)
pm_runtime_put_sync(&device->pdev->dev);
-#else
- fimc_is_companion_runtime_suspend(&device->pdev->dev);
-#endif
p_err:
err("[COMP:D] open fail(%d)status(%d)", ret, device->companion_status);
goto p_err;
}
-#if defined(CONFIG_PM_RUNTIME)
pm_runtime_put_sync(&device->pdev->dev);
#if 0
if (core != NULL && !test_bit(FIMC_IS_ISCHAIN_POWER_ON, &core->state)) {
readl(PMUREG_CAM1_STATUS), readl(PMUREG_ISP_ARM_STATUS));
}
#endif
-#else
- fimc_is_companion_runtime_suspend(&device->pdev->dev);
-#endif /* CONFIG_PM_RUNTIME */
clear_bit(FIMC_IS_COMPANION_OPEN, &device->state);
goto p_err;
}
-#if defined(CONFIG_PM_RUNTIME)
pm_runtime_enable(&pdev->dev);
-#endif
info("[COMP:D] %s(%d)\n", __func__, ret);
int i;
int ret = 0;
u32 debug;
-#if defined(CONFIG_PM_RUNTIME)
int rpm_ret;
-#endif
u32 val;
char setf_name[100];
fimc_is_ischain_forcedown(device, false);
/* 2. FIMC-IS local power enable */
-#if defined(CONFIG_PM_RUNTIME)
mdbgd_ischain("pm_runtime_suspended = %d\n", device, pm_runtime_suspended(dev));
rpm_ret = pm_runtime_get_sync(dev);
if (rpm_ret < 0)
err("pm_runtime_get_sync() return error: %d", rpm_ret);
-#else
- fimc_is_runtime_resume(dev);
- info("%s(%d) - fimc_is runtime resume complete\n", __func__, on);
-#endif
{
fimc_is_sec_get_sysfs_finfo(&sysfs_finfo);
printk(KERN_INFO "%s: A5 state(0x%x)\n", __func__, debug);
/* FIMC-IS local power down */
-#if defined(CONFIG_PM_RUNTIME)
rpm_ret = pm_runtime_put_sync(dev);
if (rpm_ret < 0)
err("pm_runtime_put_sync() return error: %d", rpm_ret);
fimc_is_a5_power(dev, 0);
}
-#else
- fimc_is_a5_power(dev, 0);
-
- fimc_is_runtime_suspend(dev);
-#endif
clear_bit(FIMC_IS_ISCHAIN_POWER_ON, &device->state);
/* for mideaserver force down */
return ret;
p_err_pm:
-#if defined(CONFIG_PM_RUNTIME)
pm_runtime_put_sync(dev);
-#else
- fimc_is_runtime_suspend(dev);
-#endif
return ret;
}
vb2_ion_attach_iommu(device->mem.alloc_ctx);
#endif
-#if defined(CONFIG_PM_RUNTIME)
pm_runtime_enable(&pdev->dev);
-#endif
ret = v4l2_device_register(&pdev->dev, &device->v4l2_dev);
if (ret) {
goto p_err;
}
-#ifdef CONFIG_PM_RUNTIME
pm_runtime_get_sync(&device->pdev->dev);
-#else
- fimc_is_sensor_runtime_resume(&device->pdev->dev);
-#endif
#ifdef ENABLE_DTP
device->dtp_check = true;
if (ret)
merr("fimc_is_flite_close is fail(%d)", device, ret);
-#if defined(CONFIG_PM_RUNTIME)
pm_runtime_put_sync(&device->pdev->dev);
-#else
- fimc_is_sensor_runtime_suspend(&device->pdev->dev);
-#endif
/* cancel a work and wait for it to finish */
cancel_work_sync(&device->control_work);