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

Commit cefd763b authored by Ram Chandrasekar's avatar Ram Chandrasekar
Browse files

msm: thermal: Fix KTM to handle deferred init case



Multiple threshold init calls return failure in
KTM and disables some features during
deferred kernel init.

Modify KTM not to return error, when the
re-initialization of thresholds data structure occurs.
This will prevent KTM from disabling the features
during deferred init.

Change-Id: Ibb976b5972e0d633e2d5d14dd91805062ffdfe39
Signed-off-by: default avatarRam Chandrasekar <rkumbako@codeaurora.org>
parent 31e6a301
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -3109,8 +3109,7 @@ static int init_threshold(enum msm_thresh_list index,
		goto init_thresh_exit;
	}
	if (thresh[index].thresh_list) {
		pr_err("threshold id:%d already initialized\n", index);
		ret = -EEXIST;
		pr_info("threshold id:%d already initialized\n", index);
		goto init_thresh_exit;
	}