mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 06:09:23 -04:00
cnss2: Ignore debugfs non availability during init
Debugfs is used for bringup support and debug. Ignore debugfs setup failure if it is not supported in kernel config. Change-Id: I07a56a0ce4adf53e0aa5b00ce73310d0c7ed2f6a Signed-off-by: Manikandan Mohan <manikand@codeaurora.org>
This commit is contained in:
parent
0a4836e3cf
commit
659efe65b5
1 changed files with 12 additions and 0 deletions
|
|
@ -753,6 +753,7 @@ static const struct file_operations cnss_dynamic_feature_fops = {
|
|||
.llseek = seq_lseek,
|
||||
};
|
||||
|
||||
#ifdef CONFIG_DEBUG_FS
|
||||
#ifdef CONFIG_CNSS2_DEBUG
|
||||
static int cnss_create_debug_only_node(struct cnss_plat_data *plat_priv)
|
||||
{
|
||||
|
|
@ -809,6 +810,17 @@ void cnss_debugfs_destroy(struct cnss_plat_data *plat_priv)
|
|||
{
|
||||
debugfs_remove_recursive(plat_priv->root_dentry);
|
||||
}
|
||||
#else
|
||||
int cnss_debugfs_create(struct cnss_plat_data *plat_priv)
|
||||
{
|
||||
plat_priv->root_dentry = NULL;
|
||||
return 0;
|
||||
}
|
||||
|
||||
void cnss_debugfs_destroy(struct cnss_plat_data *plat_priv)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
int cnss_debug_init(void)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue