Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 381b91d5 authored by Mohammed Siddiq's avatar Mohammed Siddiq
Browse files

cnss2: Add code to move debugfs removal under defconfig build



Add code to move debugfs removal under defconfig build
as it is evaluated that all debugfs nodes are not needed
for perf build today.

Change-Id: I0644b37dbb94866676a5676f5eca981fe9c6afd0
Signed-off-by: default avatarMohammed Siddiq <msiddiq@codeaurora.org>
parent 3423e083
Loading
Loading
Loading
Loading
+6 −2
Original line number Original line Diff line number Diff line
@@ -904,17 +904,21 @@ int cnss_debugfs_create(struct cnss_plat_data *plat_priv)
out:
out:
	return ret;
	return ret;
}
}

void cnss_debugfs_destroy(struct cnss_plat_data *plat_priv)
{
	debugfs_remove_recursive(plat_priv->root_dentry);
}
#else
#else
int cnss_debugfs_create(struct cnss_plat_data *plat_priv)
int cnss_debugfs_create(struct cnss_plat_data *plat_priv)
{
{
	return 0;
	return 0;
}
}
#endif


void cnss_debugfs_destroy(struct cnss_plat_data *plat_priv)
void cnss_debugfs_destroy(struct cnss_plat_data *plat_priv)
{
{
	debugfs_remove_recursive(plat_priv->root_dentry);
}
}
#endif


int cnss_debug_init(void)
int cnss_debug_init(void)
{
{