diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-01-12 07:28:00 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-02-12 12:32:36 -0500 |
commit | 0a0300dc8c4b3f3ce5c9ef5a0a4be5442590398f (patch) | |
tree | e9a0a9dc5f195447f44a077f76c8d61e2c955d17 /arch/arm/mach-ep93xx/clock.c | |
parent | 92dcffb916d309aa01778bf8963a6932e4014d07 (diff) |
ARM: Consolidate clks_register() and similar
Most machine classes want some way to register a block of clk_lookup
structures, and most do it by implementing a clks_register() type
function which walks an array, or by open-coding a loop.
Consolidate all this into clkdev_add_table().
Acked-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Kevin Hilman <khilman@deeprootsystems.com>
Acked-by: Eric Miao <eric.y.miao@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-ep93xx/clock.c')
-rw-r--r-- | arch/arm/mach-ep93xx/clock.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/arm/mach-ep93xx/clock.c b/arch/arm/mach-ep93xx/clock.c index 1d0f9d8aff2e..bb3c62196442 100644 --- a/arch/arm/mach-ep93xx/clock.c +++ b/arch/arm/mach-ep93xx/clock.c | |||
@@ -445,7 +445,6 @@ static void __init ep93xx_dma_clock_init(void) | |||
445 | static int __init ep93xx_clock_init(void) | 445 | static int __init ep93xx_clock_init(void) |
446 | { | 446 | { |
447 | u32 value; | 447 | u32 value; |
448 | int i; | ||
449 | 448 | ||
450 | value = __raw_readl(EP93XX_SYSCON_CLOCK_SET1); | 449 | value = __raw_readl(EP93XX_SYSCON_CLOCK_SET1); |
451 | if (!(value & 0x00800000)) { /* PLL1 bypassed? */ | 450 | if (!(value & 0x00800000)) { /* PLL1 bypassed? */ |
@@ -474,8 +473,7 @@ static int __init ep93xx_clock_init(void) | |||
474 | clk_f.rate / 1000000, clk_h.rate / 1000000, | 473 | clk_f.rate / 1000000, clk_h.rate / 1000000, |
475 | clk_p.rate / 1000000); | 474 | clk_p.rate / 1000000); |
476 | 475 | ||
477 | for (i = 0; i < ARRAY_SIZE(clocks); i++) | 476 | clkdev_add_table(clocks, ARRAY_SIZE(clocks)); |
478 | clkdev_add(&clocks[i]); | ||
479 | return 0; | 477 | return 0; |
480 | } | 478 | } |
481 | arch_initcall(ep93xx_clock_init); | 479 | arch_initcall(ep93xx_clock_init); |