diff options
author | Ben Dooks <ben-linux@fluff.org> | 2010-01-05 11:21:38 -0500 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2010-01-15 03:10:11 -0500 |
commit | 1d9f13c49ed750260f40317629bdd66160a3ac16 (patch) | |
tree | 3804e6a3fd0f7bf3b9e2869a26de3f018bff596a /arch/arm/plat-s5pc1xx/clock.c | |
parent | fb6e76cd2309c76d2120e013ff34ff6ab27aad88 (diff) |
ARM: SAMSUNG: Add call to register array of clocks
Add s3c_register_clocks() to register an array of clocks, printing
an error message if there is a problem. Replace all points in the code
where this could be used.
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch/arm/plat-s5pc1xx/clock.c')
-rw-r--r-- | arch/arm/plat-s5pc1xx/clock.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/arch/arm/plat-s5pc1xx/clock.c b/arch/arm/plat-s5pc1xx/clock.c index 2f4d8d4c4e1c..0aff16d1cc2c 100644 --- a/arch/arm/plat-s5pc1xx/clock.c +++ b/arch/arm/plat-s5pc1xx/clock.c | |||
@@ -704,16 +704,8 @@ void __init s5pc1xx_register_clocks(void) | |||
704 | 704 | ||
705 | s3c24xx_register_clocks(clks, ARRAY_SIZE(clks)); | 705 | s3c24xx_register_clocks(clks, ARRAY_SIZE(clks)); |
706 | 706 | ||
707 | clkp = s5pc100_init_clocks; | 707 | s3c_register_clocks(s5pc100_init_clocks, |
708 | size = ARRAY_SIZE(s5pc100_init_clocks); | 708 | ARRAY_SIZE(s5pc100_init_clocks)); |
709 | |||
710 | for (ptr = 0; ptr < size; ptr++, clkp++) { | ||
711 | ret = s3c24xx_register_clock(clkp); | ||
712 | if (ret < 0) { | ||
713 | printk(KERN_ERR "Failed to register clock %s (%d)\n", | ||
714 | clkp->name, ret); | ||
715 | } | ||
716 | } | ||
717 | 709 | ||
718 | clkp = s5pc100_init_clocks_disable; | 710 | clkp = s5pc100_init_clocks_disable; |
719 | size = ARRAY_SIZE(s5pc100_init_clocks_disable); | 711 | size = ARRAY_SIZE(s5pc100_init_clocks_disable); |