1
0
Fork 0

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: Eyal Reizer <eyalr@ti.com>
Signed-off-by: Gigi Joseph <gigi.joseph@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
hifive-unleashed-5.1
Gigi Joseph 2015-01-09 03:47:51 +00:00 committed by Greg Kroah-Hartman
parent 4b4aa3ab98
commit c6ec0fb400
1 changed files with 1 additions and 5 deletions

View File

@ -836,8 +836,7 @@ static int kim_probe(struct platform_device *pdev)
kim_debugfs_dir = debugfs_create_dir("ti-st", NULL);
if (!kim_debugfs_dir) {
pr_err(" debugfs entries creation failed ");
err = -EIO;
goto err_debugfs_dir;
return 0;
}
debugfs_create_file("version", S_IRUGO, kim_debugfs_dir,
@ -846,9 +845,6 @@ static int kim_probe(struct platform_device *pdev)
kim_gdata, &list_debugfs_fops);
return 0;
err_debugfs_dir:
sysfs_remove_group(&pdev->dev.kobj, &uim_attr_grp);
err_sysfs_group:
st_core_exit(kim_gdata->core_data);