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

Commit 83fb8802 authored by Samantha Tran's avatar Samantha Tran Committed by Gerrit - the friendly Code Review server
Browse files

msm:sde: set clks ptr to null if not available



This change sets the clock pointer to null if an error is
returned while trying to get the non-mandatory clock.

Change-Id: I157438308fe991d77185d350927a91e461874408
Signed-off-by: default avatarSamantha Tran <samtran@codeaurora.org>
parent a67b13b7
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2967,6 +2967,8 @@ static inline int sde_rotator_search_dt_clk(struct platform_device *pdev,
	if (IS_ERR(tmp)) {
		if (mandatory)
			SDEROT_ERR("unable to get clk: %s\n", clk_name);
		else
			tmp = NULL;
		rc = PTR_ERR(tmp);
	}