summaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq/pxa2xx-cpufreq.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2016-04-05 16:28:25 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-04-08 19:35:18 -0400
commit1c5864e26c99cf32b51e878f3daf73a388d7561a (patch)
tree573c01b9df76d0d1ddd7d04955a8171cf08ed31c /drivers/cpufreq/pxa2xx-cpufreq.c
parentb49c22a6ca3656c68506fea57caf3d8f08878570 (diff)
cpufreq: Use consistent prefixing via pr_fmt
Use the more common kernel style adding a define for pr_fmt. Miscellanea: o Remove now unused PFX defines Signed-off-by: Joe Perches <joe@perches.com> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq/pxa2xx-cpufreq.c')
-rw-r--r--drivers/cpufreq/pxa2xx-cpufreq.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/cpufreq/pxa2xx-cpufreq.c b/drivers/cpufreq/pxa2xx-cpufreq.c
index 8a27667c16fa..ce345bf34d5d 100644
--- a/drivers/cpufreq/pxa2xx-cpufreq.c
+++ b/drivers/cpufreq/pxa2xx-cpufreq.c
@@ -29,6 +29,8 @@
29 * 29 *
30 */ 30 */
31 31
32#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
33
32#include <linux/kernel.h> 34#include <linux/kernel.h>
33#include <linux/module.h> 35#include <linux/module.h>
34#include <linux/sched.h> 36#include <linux/sched.h>
@@ -186,8 +188,7 @@ static int pxa_cpufreq_change_voltage(const struct pxa_freqs *pxa_freq)
186 188
187 ret = regulator_set_voltage(vcc_core, vmin, vmax); 189 ret = regulator_set_voltage(vcc_core, vmin, vmax);
188 if (ret) 190 if (ret)
189 pr_err("cpufreq: Failed to set vcc_core in [%dmV..%dmV]\n", 191 pr_err("Failed to set vcc_core in [%dmV..%dmV]\n", vmin, vmax);
190 vmin, vmax);
191 return ret; 192 return ret;
192} 193}
193 194
@@ -195,10 +196,10 @@ static void __init pxa_cpufreq_init_voltages(void)
195{ 196{
196 vcc_core = regulator_get(NULL, "vcc_core"); 197 vcc_core = regulator_get(NULL, "vcc_core");
197 if (IS_ERR(vcc_core)) { 198 if (IS_ERR(vcc_core)) {
198 pr_info("cpufreq: Didn't find vcc_core regulator\n"); 199 pr_info("Didn't find vcc_core regulator\n");
199 vcc_core = NULL; 200 vcc_core = NULL;
200 } else { 201 } else {
201 pr_info("cpufreq: Found vcc_core regulator\n"); 202 pr_info("Found vcc_core regulator\n");
202 } 203 }
203} 204}
204#else 205#else
@@ -407,7 +408,7 @@ static int pxa_cpufreq_init(struct cpufreq_policy *policy)
407 */ 408 */
408 if (cpu_is_pxa25x()) { 409 if (cpu_is_pxa25x()) {
409 find_freq_tables(&pxa255_freq_table, &pxa255_freqs); 410 find_freq_tables(&pxa255_freq_table, &pxa255_freqs);
410 pr_info("PXA255 cpufreq using %s frequency table\n", 411 pr_info("using %s frequency table\n",
411 pxa255_turbo_table ? "turbo" : "run"); 412 pxa255_turbo_table ? "turbo" : "run");
412 413
413 cpufreq_table_validate_and_show(policy, pxa255_freq_table); 414 cpufreq_table_validate_and_show(policy, pxa255_freq_table);
@@ -416,7 +417,7 @@ static int pxa_cpufreq_init(struct cpufreq_policy *policy)
416 cpufreq_table_validate_and_show(policy, pxa27x_freq_table); 417 cpufreq_table_validate_and_show(policy, pxa27x_freq_table);
417 } 418 }
418 419
419 pr_info("PXA CPU frequency change support initialized\n"); 420 pr_info("frequency change support initialized\n");
420 421
421 return 0; 422 return 0;
422} 423}