[ARM] omap: arrange for clock recalc methods to return the rate
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Thu, 12 Feb 2009 10:12:59 +0000 (10:12 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 14 Feb 2009 09:59:21 +0000 (09:59 +0000)
commit8b9dbc16d4f5786c6c930ab028722e3ed7e4285b
treed6bd11034d7d31a42275577840f5eb16b432378d
parent883992bd8f6924c9aa849f2dac381075e2e55a9d
[ARM] omap: arrange for clock recalc methods to return the rate

linux-omap source commit 33d000c99ee393fe2042f93e8422f94976d276ce
introduces a way to "dry run" clock changes before they're committed.
However, this involves putting logic to handle this into each and
every recalc function, and unfortunately due to the caching, led to
some bugs.

Solve both of issues by making the recalc methods always return the
clock rate for the clock, which the caller decides what to do with.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-omap1/clock.c
arch/arm/mach-omap1/clock.h
arch/arm/mach-omap2/clock.c
arch/arm/mach-omap2/clock.h
arch/arm/mach-omap2/clock24xx.c
arch/arm/mach-omap2/clock24xx.h
arch/arm/mach-omap2/clock34xx.c
arch/arm/mach-omap2/clock34xx.h
arch/arm/plat-omap/clock.c
arch/arm/plat-omap/include/mach/clock.h