summaryrefslogtreecommitdiff
path: root/drivers/misc
diff options
context:
space:
mode:
authorRobin van der Gracht <robin@protonic.nl>2014-06-16 18:38:56 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-10 04:33:25 +0400
commit3768528af3270953696e10d65faedb960d33e9a4 (patch)
tree57dbfdc1d2fc6d7a2b621dfd17c5c930b366b25a /drivers/misc
parent4719ebfd89f0a93bb3fd7f251ecd5d0acbc8bdf1 (diff)
downloadlinux-3768528af3270953696e10d65faedb960d33e9a4.tar.xz
ti-st: st-kim: Dont let probe fail when debugfs is disabled
Signed-off-by: Robin van der Gracht <robin@protonic.nl> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/ti-st/st_kim.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/misc/ti-st/st_kim.c b/drivers/misc/ti-st/st_kim.c
index 9d3dbb28734b..45007be7cfb7 100644
--- a/drivers/misc/ti-st/st_kim.c
+++ b/drivers/misc/ti-st/st_kim.c
@@ -778,7 +778,7 @@ static int kim_probe(struct platform_device *pdev)
pr_info("sysfs entries created\n");
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 ");
err = -EIO;
goto err_debugfs_dir;
@@ -788,7 +788,6 @@ static int kim_probe(struct platform_device *pdev)
kim_gdata, &version_debugfs_fops);
debugfs_create_file("protocols", S_IRUGO, kim_debugfs_dir,
kim_gdata, &list_debugfs_fops);
- pr_info(" debugfs entries created ");
return 0;
err_debugfs_dir: