mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
Merge "disp: msm: dp: skip creating dir when debugfs is disabled"
This commit is contained in:
commit
0545182f17
1 changed files with 6 additions and 0 deletions
|
|
@ -2269,6 +2269,12 @@ static int dp_debug_init(struct dp_debug *dp_debug)
|
|||
struct dp_debug_private, dp_debug);
|
||||
struct dentry *dir;
|
||||
|
||||
if (!IS_ENABLED(CONFIG_DEBUG_FS)) {
|
||||
DP_WARN("Not creating debug root dir.");
|
||||
debug->root = NULL;
|
||||
return 0;
|
||||
}
|
||||
|
||||
dir = debugfs_create_dir(DEBUG_NAME, NULL);
|
||||
if (IS_ERR_OR_NULL(dir)) {
|
||||
if (!dir)
|
||||
|
|
|
|||
Loading…
Reference in a new issue