msm: eva: create debugfs root inside driver probe

To correctly place the core0 directory at debugfs root

Signed-off-by: Aakash Preetam <quic_apreetam@quicinc.com>
Change-Id: Ib08798e93b202dd07dc02a9b9034397199767900
此提交包含在:
apreetam
2022-01-24 14:34:26 +05:30
父節點 8886fdf213
當前提交 2a36ba8c00

查看文件

@@ -419,6 +419,10 @@ static int msm_probe_cvp_device(struct platform_device *pdev)
list_add_tail(&core->list, &cvp_driver->cores);
mutex_unlock(&cvp_driver->lock);
cvp_driver->debugfs_root = msm_cvp_debugfs_init_drv();
if (!cvp_driver->debugfs_root)
dprintk(CVP_ERR, "Failed to create debugfs for msm_cvp\n");
core->debugfs_root = msm_cvp_debugfs_init_core(
core, cvp_driver->debugfs_root);
@@ -601,10 +605,6 @@ static int __init msm_cvp_init(void)
INIT_LIST_HEAD(&cvp_driver->cores);
mutex_init(&cvp_driver->lock);
cvp_driver->debugfs_root = msm_cvp_debugfs_init_drv();
if (!cvp_driver->debugfs_root)
dprintk(CVP_ERR,
"Failed to create debugfs for msm_cvp\n");
rc = platform_driver_register(&msm_cvp_driver);
if (rc) {