[ARM] S3C24XX: pwm-clock set_parent mask fix
authorDallas Foley <dfoley@techsol.ca>
Thu, 16 Oct 2008 15:46:07 +0000 (16:46 +0100)
committerBen Dooks <ben-linux@fluff.org>
Thu, 16 Oct 2008 15:48:28 +0000 (16:48 +0100)
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>
arch/arm/plat-s3c24xx/pwm-clock.c

index 306cc9c6f9efebf44258a24d956197fd9f63b3a7..d41cccd6a25f9a8b07a0e4e9f6e4095ec9295973 100644 (file)
@@ -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;
 
This page took 0.024854 seconds and 5 git commands to generate.