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
This commit is contained in:
@@ -419,6 +419,10 @@ static int msm_probe_cvp_device(struct platform_device *pdev)
|
|||||||
list_add_tail(&core->list, &cvp_driver->cores);
|
list_add_tail(&core->list, &cvp_driver->cores);
|
||||||
mutex_unlock(&cvp_driver->lock);
|
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->debugfs_root = msm_cvp_debugfs_init_core(
|
||||||
core, cvp_driver->debugfs_root);
|
core, cvp_driver->debugfs_root);
|
||||||
|
|
||||||
@@ -601,10 +605,6 @@ static int __init msm_cvp_init(void)
|
|||||||
|
|
||||||
INIT_LIST_HEAD(&cvp_driver->cores);
|
INIT_LIST_HEAD(&cvp_driver->cores);
|
||||||
mutex_init(&cvp_driver->lock);
|
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);
|
rc = platform_driver_register(&msm_cvp_driver);
|
||||||
if (rc) {
|
if (rc) {
|
||||||
|
Reference in New Issue
Block a user