Browse Source

msm: eva: create debugfs root inside driver probe

To correctly place the core0 directory at debugfs root

Signed-off-by: Aakash Preetam <[email protected]>
Change-Id: Ib08798e93b202dd07dc02a9b9034397199767900
apreetam 3 năm trước cách đây
mục cha
commit
2a36ba8c00
1 tập tin đã thay đổi với 4 bổ sung4 xóa
  1. 4 4
      msm/eva/cvp.c

+ 4 - 4
msm/eva/cvp.c

@@ -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) {