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

Commit 0545182f authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "disp: msm: dp: skip creating dir when debugfs is disabled"

parents b61dbb8b 05a35f84
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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)