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-s3c64xx/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-s3c64xx/clock.c')
-rw-r--r-- | arch/arm/plat-s3c64xx/clock.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/arch/arm/plat-s3c64xx/clock.c b/arch/arm/plat-s3c64xx/clock.c index 7a36e899360d..ae5883c00e7a 100644 --- a/arch/arm/plat-s3c64xx/clock.c +++ b/arch/arm/plat-s3c64xx/clock.c | |||
@@ -274,15 +274,7 @@ void __init s3c64xx_register_clocks(void) | |||
274 | int ptr; | 274 | int ptr; |
275 | 275 | ||
276 | s3c24xx_register_clocks(clks, ARRAY_SIZE(clks)); | 276 | s3c24xx_register_clocks(clks, ARRAY_SIZE(clks)); |
277 | 277 | s3c_register_clocks(init_clocks, ARRAY_SIZE(init_clocks)); | |
278 | clkp = init_clocks; | ||
279 | for (ptr = 0; ptr < ARRAY_SIZE(init_clocks); ptr++, clkp++) { | ||
280 | ret = s3c24xx_register_clock(clkp); | ||
281 | if (ret < 0) { | ||
282 | printk(KERN_ERR "Failed to register clock %s (%d)\n", | ||
283 | clkp->name, ret); | ||
284 | } | ||
285 | } | ||
286 | 278 | ||
287 | clkp = init_clocks_disable; | 279 | clkp = init_clocks_disable; |
288 | for (ptr = 0; ptr < ARRAY_SIZE(init_clocks_disable); ptr++, clkp++) { | 280 | for (ptr = 0; ptr < ARRAY_SIZE(init_clocks_disable); ptr++, clkp++) { |