Skip to content

Commit

Permalink
ARM: S3C6410: update clk->parent when setting clock source
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thomas Abraham authored and Ben Dooks committed Sep 15, 2009
1 parent 9adb15b commit 6d025ac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/arm/plat-s3c64xx/s3c6400-clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 6d025ac

Please sign in to comment.