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>
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) {
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)
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);