mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 12:16:20 +00:00
[ARM] S3C24XX: pwm-clock set_parent mask fix
Fix s3c24xx pwm-clock supports use of the wrong clock when calculating the bitmask when configuring the parent clock from the set_parent call. Signed-off-by: Dallas Foley <dfoley@techsol.ca> Signed-off-by: Ben Dooks <ben-linux@fluff.org>
This commit is contained in:
parent
04ab591808
commit
7e90d760ee
1 changed files with 1 additions and 1 deletions
|
@ -315,7 +315,7 @@ static int clk_pwm_tin_set_parent(struct clk *clk, struct clk *parent)
|
|||
if (parent == s3c24xx_pwmclk_tclk(id))
|
||||
bits = S3C2410_TCFG1_MUX_TCLK << shift;
|
||||
else if (parent == s3c24xx_pwmclk_tdiv(id))
|
||||
bits = clk_pwm_tdiv_bits(to_tdiv(clk)) << shift;
|
||||
bits = clk_pwm_tdiv_bits(to_tdiv(parent)) << shift;
|
||||
else
|
||||
return -EINVAL;
|
||||
|
||||
|
|
Loading…
Reference in a new issue