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

Commit 1e0bd63c authored by Benet Clark's avatar Benet Clark
Browse files

msm: mdss: Unlock correct mutex in AD setup



The incorrect mutex for the BL file descriptor was being unlocked
in AD setup. Removed the incorrect unlock and replaced it with an
unlock on the correct mutex.

Change-Id: I276823c34d1183b69d7af06bae8b02cb7e1b56b1
Signed-off-by: default avatarBenet Clark <benetc@codeaurora.org>
parent 32bb8330
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -3230,9 +3230,8 @@ static int mdss_mdp_ad_setup(struct msm_fb_data_type *mfd)
				bl = ad->bl_lin[bl >> ad->bl_bright_shift];
				bl = bl << ad->bl_bright_shift;
			}
			mutex_unlock(&bl_mfd->bl_lock);
		}
		mutex_unlock(&mfd->bl_lock);
		mutex_unlock(&bl_mfd->bl_lock);
		pp_ad_input_write(ad, bl);
	}