diff options
| author | Joe Perches <[email protected]> | 2016-04-05 20:28:25 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2016-04-08 23:35:18 +0000 |
| commit | 1c5864e26c99cf32b51e878f3daf73a388d7561a (patch) | |
| tree | 573c01b9df76d0d1ddd7d04955a8171cf08ed31c /drivers/cpufreq/sc520_freq.c | |
| parent | cpufreq: Convert printk(KERN_<LEVEL> to pr_<level> (diff) | |
| download | kernel-1c5864e26c99cf32b51e878f3daf73a388d7561a.tar.gz kernel-1c5864e26c99cf32b51e878f3daf73a388d7561a.zip | |
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 <[email protected]>
Acked-by: Viresh Kumar <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'drivers/cpufreq/sc520_freq.c')
| -rw-r--r-- | drivers/cpufreq/sc520_freq.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/cpufreq/sc520_freq.c b/drivers/cpufreq/sc520_freq.c index 57bbddf55786..4225501a4b78 100644 --- a/drivers/cpufreq/sc520_freq.c +++ b/drivers/cpufreq/sc520_freq.c @@ -13,6 +13,8 @@ * 2005-03-30: - initial revision */ +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt + #include <linux/kernel.h> #include <linux/module.h> #include <linux/init.h> @@ -30,8 +32,6 @@ static __u8 __iomem *cpuctl; -#define PFX "sc520_freq: " - static struct cpufreq_frequency_table sc520_freq_table[] = { {0, 0x01, 100000}, {0, 0x02, 133000}, @@ -44,7 +44,7 @@ static unsigned int sc520_freq_get_cpu_frequency(unsigned int cpu) switch (clockspeed_reg & 0x03) { default: - pr_err(PFX "error: cpuctl register has unexpected value %02x\n", + pr_err("error: cpuctl register has unexpected value %02x\n", clockspeed_reg); case 0x01: return 100000; |
