Skip to content

Commit

Permalink
[ARM] S3C24XX: pwm-clock set_parent mask fix
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dallas Foley authored and Ben Dooks committed Oct 16, 2008
1 parent 04ab591 commit 7e90d76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/plat-s3c24xx/pwm-clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 7e90d76

Please sign in to comment.