[ARM] S3C64XX: Fix s3c64xx_setrate_clksrc
authorWerner Almesberger <werner@openmoko.org>
Fri, 27 Feb 2009 11:03:07 +0000 (08:03 -0300)
committerBen Dooks <ben-linux@fluff.org>
Fri, 27 Feb 2009 11:34:01 +0000 (11:34 +0000)
commitefeff568677aa325f84d3ce37c219019887a79eb
tree455f6ff1ae9e64da5bd7b0e146f3b8479fc78b0c
parentfdca9bf2dae14218704ddd7dc60ad1b198c1d787
[ARM] S3C64XX: Fix s3c64xx_setrate_clksrc

Some of the rate selection logic in s3c64xx_setrate_clksrc uses what
appears to be parent clock selection logic. This patch corrects it.

I also added a check for overly large dividers to prevent them from
changing unrelated clocks.

Signed-off-by: Werner Almesberger <werner@openmoko.org>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
arch/arm/plat-s3c64xx/s3c6400-clock.c