diff options
author | Ben Dooks <ben-linux@fluff.org> | 2009-12-09 00:08:35 +0000 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2010-01-15 17:10:10 +0900 |
commit | 682e2b7d45878586ce84f6993da0b8a2981a399d (patch) | |
tree | 7d64665810dd9d2783067714e49f4c51c752b57b /arch/arm/plat-samsung/include/plat/clock-clksrc.h | |
parent | f3e0b724cc70ef5ee2a6e0d9dfafa2328c294ab3 (diff) | |
download | blackbird-op-linux-682e2b7d45878586ce84f6993da0b8a2981a399d.tar.gz blackbird-op-linux-682e2b7d45878586ce84f6993da0b8a2981a399d.zip |
ARM: S3C64XX: Avoid announcing clksrc clocks twice
The new code calls the clock setup code on registration which
can be before the clock system has been fully initialised. The
following code re-does this setup at the end of the clock
registration and thus we get two printings.
Update the calls to only print on the last pass or when doing
the necessary resume work.
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch/arm/plat-samsung/include/plat/clock-clksrc.h')
-rw-r--r-- | arch/arm/plat-samsung/include/plat/clock-clksrc.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/arch/arm/plat-samsung/include/plat/clock-clksrc.h b/arch/arm/plat-samsung/include/plat/clock-clksrc.h index 283dfa028757..50a8ca7c3760 100644 --- a/arch/arm/plat-samsung/include/plat/clock-clksrc.h +++ b/arch/arm/plat-samsung/include/plat/clock-clksrc.h @@ -63,7 +63,15 @@ struct clksrc_clk { struct clksrc_reg reg_div; }; -extern void s3c_set_clksrc(struct clksrc_clk *clk); +/** + * s3c_set_clksrc() - setup the clock from the register settings + * @clk: The clock to setup. + * @announce: true to announce the setting to printk(). + * + * Setup the clock from the current register settings, for when the + * kernel boots or if it is resuming from a possibly unknown state. + */ +extern void s3c_set_clksrc(struct clksrc_clk *clk, bool announce); /** * s3c_register_clksrc() register clocks from an array of clksrc clocks |