diff options
author | Gigi Joseph <gigi.joseph@gmail.com> | 2015-01-09 04:47:51 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-01-12 14:04:11 +0100 |
commit | c6ec0fb4006d1d8110b3166f2cc2b04b8002d210 (patch) | |
tree | baeacd1cdf9f07b650ed98fa33e6f6113d59cb8e /drivers/misc/ti-st | |
parent | st_kim: allow suspend if callback is not registered (diff) | |
download | linux-c6ec0fb4006d1d8110b3166f2cc2b04b8002d210.tar.xz linux-c6ec0fb4006d1d8110b3166f2cc2b04b8002d210.zip |
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>
Diffstat (limited to 'drivers/misc/ti-st')
-rw-r--r-- | drivers/misc/ti-st/st_kim.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/misc/ti-st/st_kim.c b/drivers/misc/ti-st/st_kim.c index f2c1071e54c9..878956a7f897 100644 --- a/drivers/misc/ti-st/st_kim.c +++ b/drivers/misc/ti-st/st_kim.c @@ -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); |