Skip to content

Commit

Permalink
S3C64XX: Fix get_rate() for ARMCLK
Browse files Browse the repository at this point in the history
If the requested clock is faster than the parent clock then the
parent clock is the closest we can get to the request so we need
to return that instead of the requested clock.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
  • Loading branch information
Mark Brown authored and Ben Dooks committed Jul 29, 2009
1 parent 0c997c0 commit 1d91e1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/plat-s3c64xx/s3c6400-clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ static unsigned long s3c64xx_clk_arm_round_rate(struct clk *clk,
u32 div;

if (parent < rate)
return rate;
return parent;

div = (parent / rate) - 1;
if (div > armclk_mask)
Expand Down

0 comments on commit 1d91e1a

Please sign in to comment.