diff options
author | Paul Walmsley <paul@pwsan.com> | 2012-07-26 02:54:26 -0400 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2012-09-12 04:57:10 -0400 |
commit | 7852ec0536ca39cefffc6301dc77f8ae55592926 (patch) | |
tree | faa867a05d6571d5027b3fbfdf452678b3d35d38 /arch/arm/mach-omap2/clock.c | |
parent | a032d33b65c89a781c871fd1def595fa6a69b52a (diff) |
ARM: OMAP: unwrap strings
Find and unwrap wrapped strings in the style:
pr_debug("clockdomain: hardware cannot set/clear wake up of "
"%s when %s wakes up\n", clkdm1->name, clkdm2->name);
Keeping these strings contiguous seems to be the current Linux kernel
policy.
The offending lines were found with the following command:
pcregrep -rnM '"\s*$\s*"' arch/arm/*omap*
While here, some messages have been clarified, some pr_warning(
... calls have been converted to pr_warn( ..., and some printk(KERN_*
... have been converted to pr_*.
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Diffstat (limited to 'arch/arm/mach-omap2/clock.c')
-rw-r--r-- | arch/arm/mach-omap2/clock.c | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/arch/arm/mach-omap2/clock.c b/arch/arm/mach-omap2/clock.c index ea3f565ba1a4..eeaf35367c80 100644 --- a/arch/arm/mach-omap2/clock.c +++ b/arch/arm/mach-omap2/clock.c | |||
@@ -102,8 +102,8 @@ void omap2_init_clk_clkdm(struct clk *clk) | |||
102 | clk->name, clk->clkdm_name); | 102 | clk->name, clk->clkdm_name); |
103 | clk->clkdm = clkdm; | 103 | clk->clkdm = clkdm; |
104 | } else { | 104 | } else { |
105 | pr_debug("clock: could not associate clk %s to " | 105 | pr_debug("clock: could not associate clk %s to clkdm %s\n", |
106 | "clkdm %s\n", clk->name, clk->clkdm_name); | 106 | clk->name, clk->clkdm_name); |
107 | } | 107 | } |
108 | } | 108 | } |
109 | 109 | ||
@@ -226,8 +226,7 @@ void omap2_dflt_clk_disable(struct clk *clk) | |||
226 | * 'Independent' here refers to a clock which is not | 226 | * 'Independent' here refers to a clock which is not |
227 | * controlled by its parent. | 227 | * controlled by its parent. |
228 | */ | 228 | */ |
229 | printk(KERN_ERR "clock: clk_disable called on independent " | 229 | pr_err("clock: clk_disable called on independent clock %s which has no enable_reg\n", clk->name); |
230 | "clock %s which has no enable_reg\n", clk->name); | ||
231 | return; | 230 | return; |
232 | } | 231 | } |
233 | 232 | ||
@@ -270,8 +269,7 @@ const struct clkops clkops_omap2_dflt = { | |||
270 | void omap2_clk_disable(struct clk *clk) | 269 | void omap2_clk_disable(struct clk *clk) |
271 | { | 270 | { |
272 | if (clk->usecount == 0) { | 271 | if (clk->usecount == 0) { |
273 | WARN(1, "clock: %s: omap2_clk_disable() called, but usecount " | 272 | WARN(1, "clock: %s: omap2_clk_disable() called, but usecount already 0?", clk->name); |
274 | "already 0?", clk->name); | ||
275 | return; | 273 | return; |
276 | } | 274 | } |
277 | 275 | ||
@@ -332,8 +330,8 @@ int omap2_clk_enable(struct clk *clk) | |||
332 | if (clkdm_control && clk->clkdm) { | 330 | if (clkdm_control && clk->clkdm) { |
333 | ret = clkdm_clk_enable(clk->clkdm, clk); | 331 | ret = clkdm_clk_enable(clk->clkdm, clk); |
334 | if (ret) { | 332 | if (ret) { |
335 | WARN(1, "clock: %s: could not enable clockdomain %s: " | 333 | WARN(1, "clock: %s: could not enable clockdomain %s: %d\n", |
336 | "%d\n", clk->name, clk->clkdm->name, ret); | 334 | clk->name, clk->clkdm->name, ret); |
337 | goto oce_err2; | 335 | goto oce_err2; |
338 | } | 336 | } |
339 | } | 337 | } |
@@ -501,10 +499,8 @@ void __init omap2_clk_print_new_rates(const char *hfclkin_ck_name, | |||
501 | 499 | ||
502 | hfclkin_rate = clk_get_rate(hfclkin_ck); | 500 | hfclkin_rate = clk_get_rate(hfclkin_ck); |
503 | 501 | ||
504 | pr_info("Switched to new clocking rate (Crystal/Core/MPU): " | 502 | pr_info("Switched to new clocking rate (Crystal/Core/MPU): %ld.%01ld/%ld/%ld MHz\n", |
505 | "%ld.%01ld/%ld/%ld MHz\n", | 503 | (hfclkin_rate / 1000000), ((hfclkin_rate / 100000) % 10), |
506 | (hfclkin_rate / 1000000), | ||
507 | ((hfclkin_rate / 100000) % 10), | ||
508 | (clk_get_rate(core_ck) / 1000000), | 504 | (clk_get_rate(core_ck) / 1000000), |
509 | (clk_get_rate(mpu_ck) / 1000000)); | 505 | (clk_get_rate(mpu_ck) / 1000000)); |
510 | } | 506 | } |