提交 c6ec0fb4 编写于 作者: G Gigi Joseph 提交者: Greg Kroah-Hartman

drivers: misc: ti-st: fix debugfs creation error handling

In case the debugfs creation fails the whole init process was failing.
There is no need to do this as the shared transport can work without it.
Fix it so it just reports the failure and continue.
Signed-off-by: NEyal Reizer <eyalr@ti.com>
Signed-off-by: NGigi Joseph <gigi.joseph@ti.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 4b4aa3ab
...@@ -836,8 +836,7 @@ static int kim_probe(struct platform_device *pdev) ...@@ -836,8 +836,7 @@ static int kim_probe(struct platform_device *pdev)
kim_debugfs_dir = debugfs_create_dir("ti-st", NULL); kim_debugfs_dir = debugfs_create_dir("ti-st", NULL);
if (!kim_debugfs_dir) { if (!kim_debugfs_dir) {
pr_err(" debugfs entries creation failed "); pr_err(" debugfs entries creation failed ");
err = -EIO; return 0;
goto err_debugfs_dir;
} }
debugfs_create_file("version", S_IRUGO, kim_debugfs_dir, debugfs_create_file("version", S_IRUGO, kim_debugfs_dir,
...@@ -846,9 +845,6 @@ static int kim_probe(struct platform_device *pdev) ...@@ -846,9 +845,6 @@ static int kim_probe(struct platform_device *pdev)
kim_gdata, &list_debugfs_fops); kim_gdata, &list_debugfs_fops);
return 0; return 0;
err_debugfs_dir:
sysfs_remove_group(&pdev->dev.kobj, &uim_attr_grp);
err_sysfs_group: err_sysfs_group:
st_core_exit(kim_gdata->core_data); st_core_exit(kim_gdata->core_data);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册