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

Commit 9d8b16ee authored by Padmanabhan Komanduru's avatar Padmanabhan Komanduru Committed by Steve Cohen
Browse files

drm/msm/dp: fix the return value of DP debug module during bind



Return error to DP display module when the DP debug initialization
fails with a return value of zero.

Change-Id: Ieb6c0eb2dd4fa5eb4e7690d87a4c1e1bda1f7f73
Signed-off-by: default avatarPadmanabhan Komanduru <pkomandu@codeaurora.org>
parent 4347ed7a
Loading
Loading
Loading
Loading
+6 −1
Original line number Original line Diff line number Diff line
@@ -670,6 +670,9 @@ static int dp_debug_init(struct dp_debug *dp_debug)


	dir = debugfs_create_dir(DEBUG_NAME, NULL);
	dir = debugfs_create_dir(DEBUG_NAME, NULL);
	if (IS_ERR_OR_NULL(dir)) {
	if (IS_ERR_OR_NULL(dir)) {
		if (!dir)
			rc = -EINVAL;
		else
			rc = PTR_ERR(dir);
			rc = PTR_ERR(dir);
		pr_err("[%s] debugfs create dir failed, rc = %d\n",
		pr_err("[%s] debugfs create dir failed, rc = %d\n",
		       DEBUG_NAME, rc);
		       DEBUG_NAME, rc);
@@ -753,6 +756,8 @@ static int dp_debug_init(struct dp_debug *dp_debug)
	return 0;
	return 0;


error_remove_dir:
error_remove_dir:
	if (!file)
		rc = -EINVAL;
	debugfs_remove_recursive(dir);
	debugfs_remove_recursive(dir);
error:
error:
	return rc;
	return rc;