diff --git a/drivers/staging/greybus/debugfs.c b/drivers/staging/greybus/debugfs.c index 770b7c0857d3..b8865d707362 100644 --- a/drivers/staging/greybus/debugfs.c +++ b/drivers/staging/greybus/debugfs.c @@ -29,3 +29,9 @@ void gb_debugfs_cleanup(void) debugfs_remove_recursive(gb_debug_root); gb_debug_root = NULL; } + +struct dentry *gb_debugfs_get(void) +{ + return gb_debug_root; +} +EXPORT_SYMBOL_GPL(gb_debugfs_get); diff --git a/drivers/staging/greybus/greybus.h b/drivers/staging/greybus/greybus.h index 68382b383390..967d64faa8fd 100644 --- a/drivers/staging/greybus/greybus.h +++ b/drivers/staging/greybus/greybus.h @@ -160,6 +160,7 @@ int gb_ap_init(void); void gb_ap_exit(void); int gb_debugfs_init(void); void gb_debugfs_cleanup(void); +struct dentry *gb_debugfs_get(void); extern struct bus_type greybus_bus_type;