disp: msm: modify handling of debugfs initialization
Add support to allow creation of debugfs node only if CONFIG_DEBUG_FS is enabled. Change-Id: Iaeaf51b3654c9458cf8131a9756e6b905007c4ae Signed-off-by: Krishna Manikandan <mkrishn@codeaurora.org> Signed-off-by: Samantha Tran <samtran@codeaurora.org>
This commit is contained in:
@@ -873,16 +873,7 @@ static int msm_drm_component_init(struct device *dev)
|
||||
drm_client_register(&kms->client);
|
||||
}
|
||||
|
||||
priv->debug_root = debugfs_create_dir("debug",
|
||||
ddev->primary->debugfs_root);
|
||||
if (IS_ERR_OR_NULL(priv->debug_root)) {
|
||||
pr_err("debugfs_root create_dir fail, error %ld\n",
|
||||
PTR_ERR(priv->debug_root));
|
||||
priv->debug_root = NULL;
|
||||
goto fail;
|
||||
}
|
||||
|
||||
ret = sde_dbg_debugfs_register(priv->debug_root);
|
||||
ret = sde_dbg_debugfs_register(dev);
|
||||
if (ret) {
|
||||
dev_err(dev, "failed to reg sde dbg debugfs: %d\n", ret);
|
||||
goto fail;
|
||||
|
Reference in New Issue
Block a user