diff options
author | Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com> | 2013-10-17 18:35:25 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2013-10-17 19:40:33 -0400 |
commit | 001d4c7aea587ce0865c07ec45aa56ecbefd431a (patch) | |
tree | 191204532399dbd0eb8cdef5a726fe5ae3d5b71a | |
parent | 61e6cfa80de5760bbe406f4e815b7739205754d2 (diff) |
mrst: Fixed printk/pr_* related issues
Fixed printk and pr_* related issues in mrst related files.
Signed-off-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Link: http://lkml.kernel.org/r/1382049336-21316-2-git-send-email-david.a.cohen@linux.intel.com
Signed-off-by: David Cohen <david.a.cohen@linux.intel.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
-rw-r--r-- | arch/x86/platform/mrst/early_printk_mrst.c | 2 | ||||
-rw-r--r-- | arch/x86/platform/mrst/mrst.c | 2 | ||||
-rw-r--r-- | arch/x86/platform/mrst/vrtc.c | 5 |
3 files changed, 4 insertions, 5 deletions
diff --git a/arch/x86/platform/mrst/early_printk_mrst.c b/arch/x86/platform/mrst/early_printk_mrst.c index 028454f0c3a5..95880f7f34de 100644 --- a/arch/x86/platform/mrst/early_printk_mrst.c +++ b/arch/x86/platform/mrst/early_printk_mrst.c | |||
@@ -213,7 +213,7 @@ static void early_mrst_spi_putc(char c) | |||
213 | } | 213 | } |
214 | 214 | ||
215 | if (!timeout) | 215 | if (!timeout) |
216 | pr_warning("MRST earlycon: timed out\n"); | 216 | pr_warn("MRST earlycon: timed out\n"); |
217 | else | 217 | else |
218 | max3110_write_data(c); | 218 | max3110_write_data(c); |
219 | } | 219 | } |
diff --git a/arch/x86/platform/mrst/mrst.c b/arch/x86/platform/mrst/mrst.c index 3ca5957b7a34..b9aeb5464d82 100644 --- a/arch/x86/platform/mrst/mrst.c +++ b/arch/x86/platform/mrst/mrst.c | |||
@@ -328,7 +328,7 @@ static inline int __init setup_x86_mrst_timer(char *arg) | |||
328 | else if (strcmp("lapic_and_apbt", arg) == 0) | 328 | else if (strcmp("lapic_and_apbt", arg) == 0) |
329 | mrst_timer_options = MRST_TIMER_LAPIC_APBT; | 329 | mrst_timer_options = MRST_TIMER_LAPIC_APBT; |
330 | else { | 330 | else { |
331 | pr_warning("X86 MRST timer option %s not recognised" | 331 | pr_warn("X86 MRST timer option %s not recognised" |
332 | " use x86_mrst_timer=apbt_only or lapic_and_apbt\n", | 332 | " use x86_mrst_timer=apbt_only or lapic_and_apbt\n", |
333 | arg); | 333 | arg); |
334 | return -EINVAL; | 334 | return -EINVAL; |
diff --git a/arch/x86/platform/mrst/vrtc.c b/arch/x86/platform/mrst/vrtc.c index 5e355b134ba4..ca4f7d999fd1 100644 --- a/arch/x86/platform/mrst/vrtc.c +++ b/arch/x86/platform/mrst/vrtc.c | |||
@@ -79,7 +79,7 @@ void vrtc_get_time(struct timespec *now) | |||
79 | /* vRTC YEAR reg contains the offset to 1972 */ | 79 | /* vRTC YEAR reg contains the offset to 1972 */ |
80 | year += 1972; | 80 | year += 1972; |
81 | 81 | ||
82 | printk(KERN_INFO "vRTC: sec: %d min: %d hour: %d day: %d " | 82 | pr_info("vRTC: sec: %d min: %d hour: %d day: %d " |
83 | "mon: %d year: %d\n", sec, min, hour, mday, mon, year); | 83 | "mon: %d year: %d\n", sec, min, hour, mday, mon, year); |
84 | 84 | ||
85 | now->tv_sec = mktime(year, mon, mday, hour, min, sec); | 85 | now->tv_sec = mktime(year, mon, mday, hour, min, sec); |
@@ -109,8 +109,7 @@ int vrtc_set_mmss(const struct timespec *now) | |||
109 | vrtc_cmos_write(tm.tm_sec, RTC_SECONDS); | 109 | vrtc_cmos_write(tm.tm_sec, RTC_SECONDS); |
110 | spin_unlock_irqrestore(&rtc_lock, flags); | 110 | spin_unlock_irqrestore(&rtc_lock, flags); |
111 | } else { | 111 | } else { |
112 | printk(KERN_ERR | 112 | pr_err("%s: Invalid vRTC value: write of %lx to vRTC failed\n", |
113 | "%s: Invalid vRTC value: write of %lx to vRTC failed\n", | ||
114 | __FUNCTION__, now->tv_sec); | 113 | __FUNCTION__, now->tv_sec); |
115 | retval = -EINVAL; | 114 | retval = -EINVAL; |
116 | } | 115 | } |