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

Commit e503414f authored by Padmanabhan Komanduru's avatar Padmanabhan Komanduru Committed by Gerrit - the friendly Code Review server
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 76913944
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -598,6 +598,9 @@ static int dp_debug_init(struct dp_debug *dp_debug)

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

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