Skip to content

Commit 3768528

Browse files
rvdgrachtgregkh
authored andcommitted
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>
1 parent 4719ebf commit 3768528

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎drivers/misc/ti-st/st_kim.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ static int kim_probe(struct platform_device *pdev)
778778
pr_info("sysfs entries created\n");
779779

780780
kim_debugfs_dir = debugfs_create_dir("ti-st", NULL);
781-
if (IS_ERR(kim_debugfs_dir)) {
781+
if (!kim_debugfs_dir) {
782782
pr_err(" debugfs entries creation failed ");
783783
err = -EIO;
784784
goto err_debugfs_dir;
@@ -788,7 +788,6 @@ static int kim_probe(struct platform_device *pdev)
788788
kim_gdata, &version_debugfs_fops);
789789
debugfs_create_file("protocols", S_IRUGO, kim_debugfs_dir,
790790
kim_gdata, &list_debugfs_fops);
791-
pr_info(" debugfs entries created ");
792791
return 0;
793792

794793
err_debugfs_dir:

0 commit comments

Comments
 (0)