Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6d025ac2 authored by Thomas Abraham's avatar Thomas Abraham Committed by Ben Dooks
Browse files

ARM: S3C6410: update clk->parent when setting clock source



This ensures the clock hierarchy data structures are updated when we
change the clock source in the actual hardware registers.

Signed-off-by: default avatarThomas Abraham <thomas.ab@samsung.com>
[ben-linux@fluff.org: Minor re-indentation of subject]
Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
parent 9adb15b8
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -328,6 +328,8 @@ static int s3c64xx_setparent_clksrc(struct clk *clk, struct clk *parent)
		clksrc |= src_nr << sclk->shift;
		clksrc |= src_nr << sclk->shift;


		__raw_writel(clksrc, S3C_CLK_SRC);
		__raw_writel(clksrc, S3C_CLK_SRC);

		clk->parent = parent;
		return 0;
		return 0;
	}
	}