diff --git a/techpack/video/msm/vidc/msm_v4l2_vidc.c b/techpack/video/msm/vidc/msm_v4l2_vidc.c index 5f6a82acd47f..fe2aa0c9911f 100644 --- a/techpack/video/msm/vidc/msm_v4l2_vidc.c +++ b/techpack/video/msm/vidc/msm_v4l2_vidc.c @@ -584,8 +584,10 @@ static int msm_vidc_probe_vidc_device(struct platform_device *pdev) list_add_tail(&core->list, &vidc_driver->cores); mutex_unlock(&vidc_driver->lock); +#ifdef CONFIG_DEBUG_FS core->debugfs_root = msm_vidc_debugfs_init_core( core, vidc_driver->debugfs_root); +#endif vidc_driver->sku_version = core->resources.sku_version; @@ -784,9 +786,12 @@ static int __init msm_vidc_init(void) INIT_LIST_HEAD(&vidc_driver->cores); mutex_init(&vidc_driver->lock); + +#ifdef CONFIG_DEBUG_FS vidc_driver->debugfs_root = msm_vidc_debugfs_init_drv(); if (!vidc_driver->debugfs_root) d_vpr_e("Failed to create debugfs for msm_vidc\n"); +#endif rc = platform_driver_register(&msm_vidc_driver); if (rc) { diff --git a/techpack/video/msm/vidc/msm_vidc.c b/techpack/video/msm/vidc/msm_vidc.c index cbb46852cbb9..23ca574b6add 100644 --- a/techpack/video/msm/vidc/msm_vidc.c +++ b/techpack/video/msm/vidc/msm_vidc.c @@ -1543,8 +1543,10 @@ void *msm_vidc_open(int core_id, int session_type) msm_comm_scale_clocks_and_bus(inst, 1); +#ifdef CONFIG_DEBUG_FS inst->debugfs_root = msm_vidc_debugfs_init_inst(inst, core->debugfs_root); +#endif if (inst->session_type == MSM_VIDC_CVP) { rc = msm_comm_try_state(inst, MSM_VIDC_OPEN_DONE);