]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
greybus: debugfs: we shouldn't care if debugfs is working or not
authorGreg Kroah-Hartman <greg@kroah.com>
Fri, 27 Mar 2015 10:38:06 +0000 (11:38 +0100)
committerGreg Kroah-Hartman <greg@kroah.com>
Mon, 30 Mar 2015 13:01:56 +0000 (15:01 +0200)
This removes the error checking for debugfs initialization as we really
don't care if it failed or not.

Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
Reviewed-by: Alex Elder <elder@linaro.org>
drivers/staging/greybus/core.c
drivers/staging/greybus/debugfs.c
drivers/staging/greybus/greybus.h

index a25df369d2b99ba4b54b8facfd1e2a8fab10b837..96265a1d668f1bcf6f50454ccba21946cd361f87 100644 (file)
@@ -212,11 +212,7 @@ static int __init gb_init(void)
 
        BUILD_BUG_ON(HOST_DEV_CPORT_ID_MAX >= (long)CPORT_ID_BAD);
 
-       retval = gb_debugfs_init();
-       if (retval) {
-               pr_err("debugfs failed\n");
-               return retval;
-       }
+       gb_debugfs_init();
 
        retval = bus_register(&greybus_bus_type);
        if (retval) {
index b8865d70736287ab7b0419cc37fab5179875a59e..59c570964b0161fe577ab16bc82a8571df0a0e2f 100644 (file)
 
 static struct dentry *gb_debug_root;
 
-int gb_debugfs_init(void)
+void gb_debugfs_init(void)
 {
        gb_debug_root = debugfs_create_dir("greybus", NULL);
-       if (!gb_debug_root)
-               return -ENOENT;
-
-       return 0;
 }
 
 void gb_debugfs_cleanup(void)
index 967d64faa8fd8d05da8f1f9ffd0be86528741c4e..5a7f6227c1e505595e77ab947d807c9053353d04 100644 (file)
@@ -158,7 +158,7 @@ int greybus_disabled(void);
 int greybus_svc_in(struct greybus_host_device *hd, u8 *data, int length);
 int gb_ap_init(void);
 void gb_ap_exit(void);
-int gb_debugfs_init(void);
+void gb_debugfs_init(void);
 void gb_debugfs_cleanup(void);
 struct dentry *gb_debugfs_get(void);