Commit 3768528a authored by Robin van der Gracht's avatar Robin van der Gracht Committed by Greg Kroah-Hartman

ti-st: st-kim: Dont let probe fail when debugfs is disabled

Signed-off-by: default avatarRobin van der Gracht <robin@protonic.nl>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4719ebfd
...@@ -778,7 +778,7 @@ static int kim_probe(struct platform_device *pdev) ...@@ -778,7 +778,7 @@ static int kim_probe(struct platform_device *pdev)
pr_info("sysfs entries created\n"); pr_info("sysfs entries created\n");
kim_debugfs_dir = debugfs_create_dir("ti-st", NULL); kim_debugfs_dir = debugfs_create_dir("ti-st", NULL);
if (IS_ERR(kim_debugfs_dir)) { if (!kim_debugfs_dir) {
pr_err(" debugfs entries creation failed "); pr_err(" debugfs entries creation failed ");
err = -EIO; err = -EIO;
goto err_debugfs_dir; goto err_debugfs_dir;
...@@ -788,7 +788,6 @@ static int kim_probe(struct platform_device *pdev) ...@@ -788,7 +788,6 @@ static int kim_probe(struct platform_device *pdev)
kim_gdata, &version_debugfs_fops); kim_gdata, &version_debugfs_fops);
debugfs_create_file("protocols", S_IRUGO, kim_debugfs_dir, debugfs_create_file("protocols", S_IRUGO, kim_debugfs_dir,
kim_gdata, &list_debugfs_fops); kim_gdata, &list_debugfs_fops);
pr_info(" debugfs entries created ");
return 0; return 0;
err_debugfs_dir: err_debugfs_dir:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment