[wilink8-wlan/build-utilites.git] / patches / kernel_patches / imx-3.10.53-android-5.0.0_1.0.0-ga / 0014-drivers-misc-ti-st-fix-debugfs-creation-error-handli.patch
diff --git a/patches/kernel_patches/imx-3.10.53-android-5.0.0_1.0.0-ga/0014-drivers-misc-ti-st-fix-debugfs-creation-error-handli.patch b/patches/kernel_patches/imx-3.10.53-android-5.0.0_1.0.0-ga/0014-drivers-misc-ti-st-fix-debugfs-creation-error-handli.patch
--- /dev/null
@@ -0,0 +1,44 @@
+From 6b291ea73405f91ceb7abd384152110601dac167 Mon Sep 17 00:00:00 2001
+From: Gigi Joseph <gigi.joseph@gmail.com>
+Date: Fri, 9 Jan 2015 03:47:51 +0000
+Subject: [PATCH 14/15] 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>
+---
+ drivers/misc/ti-st/st_kim.c | 6 +-----
+ 1 file changed, 1 insertion(+), 5 deletions(-)
+
+diff --git a/drivers/misc/ti-st/st_kim.c b/drivers/misc/ti-st/st_kim.c
+index 8cb48b1..b0cddef 100644
+--- a/drivers/misc/ti-st/st_kim.c
++++ b/drivers/misc/ti-st/st_kim.c
+@@ -837,8 +837,7 @@ static int kim_probe(struct platform_device *pdev)
+ kim_debugfs_dir = debugfs_create_dir("ti-st", NULL);
+ if (IS_ERR(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,
+@@ -847,9 +846,6 @@ static int kim_probe(struct platform_device *pdev)
+ kim_gdata, &list_debugfs_fops);
+ pr_info(" debugfs entries created ");
+ return 0;
+-
+-err_debugfs_dir:
+- sysfs_remove_group(&pdev->dev.kobj, &uim_attr_grp);
+ #endif
+
+ err_sysfs_group:
+--
+1.7.9.5
+