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

Commit c6e1ea32 authored by Gjorgji Rosikopulos's avatar Gjorgji Rosikopulos
Browse files

msm: camera: fd: Ignore error if round rate fails



On some clocks rate is fixed, we can not set or round.
Skip setting of the rates if round rate fails.

Change-Id: Ia14e899ef9ad676ef2cbe721234062f9b244031a
Signed-off-by: default avatarGjorgji Rosikopulos <grosik@codeaurora.org>
parent 8363bc8c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -596,8 +596,8 @@ static int msm_fd_hw_set_clock_rate_idx(struct msm_fd_device *fd,

		clk_rate = clk_round_rate(fd->clk[i], fd->clk_rates[idx][i]);
		if (clk_rate < 0) {
			dev_err(fd->dev, "Fail clock round rate\n");
			return -EINVAL;
			dev_dbg(fd->dev, "Clk raund rate fail skip %d\n", i);
			continue;
		}

		ret = clk_set_rate(fd->clk[i], clk_rate);