ais: always do clock set_rate after get_rate
Before clock enable, should always set rate firstly for safety, in case the value after get rate changes. Change-Id: I6985d9ab413012e988434ee3a8ea78b0beb803d2 Signed-off-by: Andy Sun <bins@codeaurora.org>
This commit is contained in:
parent
96e3d4de6d
commit
34af16a207
1 changed files with 7 additions and 7 deletions
|
@ -379,13 +379,13 @@ int msm_camera_clk_enable(struct device *dev,
|
|||
clk_info[i].clk_name);
|
||||
goto cam_clk_set_err;
|
||||
}
|
||||
rc = clk_set_rate(clk_ptr[i],
|
||||
clk_rate);
|
||||
if (rc < 0) {
|
||||
pr_err("%s set rate failed\n",
|
||||
clk_info[i].clk_name);
|
||||
goto cam_clk_set_err;
|
||||
}
|
||||
}
|
||||
rc = clk_set_rate(clk_ptr[i],
|
||||
clk_rate);
|
||||
if (rc < 0) {
|
||||
pr_err("%s set rate failed\n",
|
||||
clk_info[i].clk_name);
|
||||
goto cam_clk_set_err;
|
||||
}
|
||||
}
|
||||
rc = clk_prepare_enable(clk_ptr[i]);
|
||||
|
|
Loading…
Add table
Reference in a new issue