From: Thomas Abraham <[email protected]>

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 <[email protected]>
---
 arch/arm/plat-s3c64xx/s3c6400-clock.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/arm/plat-s3c64xx/s3c6400-clock.c 
b/arch/arm/plat-s3c64xx/s3c6400-clock.c
index c972d2f..54eef93 100644
--- a/arch/arm/plat-s3c64xx/s3c6400-clock.c
+++ b/arch/arm/plat-s3c64xx/s3c6400-clock.c
@@ -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;
        }
 
-- 
1.5.3.4

--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to