ARM: S3C6410: update clk->parent when setting clock source
authorThomas Abraham <thomas.ab@samsung.com>
Tue, 8 Sep 2009 05:30:48 +0000 (14:30 +0900)
committerBen Dooks <ben-linux@fluff.org>
Tue, 15 Sep 2009 23:50:05 +0000 (00:50 +0100)
This ensures the clock hierarchy data structures are updated when we
change the clock source in the actual hardware registers.

Signed-off-by: Thomas Abraham <thomas.ab@samsung.com>
[ben-linux@fluff.org: Minor re-indentation of subject]
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
arch/arm/plat-s3c64xx/s3c6400-clock.c

index c972d2f8c2716e0ae72d53af9f8982543bcde15f..54eef9326c21f1054569f2b6fcf52ecbf7360128 100644 (file)
@@ -328,6 +328,8 @@ static int s3c64xx_setparent_clksrc(struct clk *clk, struct clk *parent)
                clksrc |= src_nr << sclk->shift;
 
                __raw_writel(clksrc, S3C_CLK_SRC);
+
+               clk->parent = parent;
                return 0;
        }