]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
mrst: Fixed printk/pr_* related issues
authorKuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Thu, 17 Oct 2013 22:35:25 +0000 (15:35 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Thu, 17 Oct 2013 23:40:33 +0000 (16:40 -0700)
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>
arch/x86/platform/mrst/early_printk_mrst.c
arch/x86/platform/mrst/mrst.c
arch/x86/platform/mrst/vrtc.c

index 028454f0c3a51ac86a7105d24d433e197621a95d..95880f7f34de2bbd1302e29d16a82afd042fc572 100644 (file)
@@ -213,7 +213,7 @@ static void early_mrst_spi_putc(char c)
        }
 
        if (!timeout)
-               pr_warning("MRST earlycon: timed out\n");
+               pr_warn("MRST earlycon: timed out\n");
        else
                max3110_write_data(c);
 }
index 3ca5957b7a3430327a9539f3dc0bb8ca4665a0b7..b9aeb5464d8221bce0f8bcc4f25098c664d13f61 100644 (file)
@@ -328,7 +328,7 @@ static inline int __init setup_x86_mrst_timer(char *arg)
        else if (strcmp("lapic_and_apbt", arg) == 0)
                mrst_timer_options = MRST_TIMER_LAPIC_APBT;
        else {
-               pr_warning("X86 MRST timer option %s not recognised"
+               pr_warn("X86 MRST timer option %s not recognised"
                           " use x86_mrst_timer=apbt_only or lapic_and_apbt\n",
                           arg);
                return -EINVAL;
index 5e355b134ba49043b63d9acda6e549fa3d6420e1..ca4f7d999fd1af5759e9fbd7c09e0ee6c05dfc95 100644 (file)
@@ -79,7 +79,7 @@ void vrtc_get_time(struct timespec *now)
        /* vRTC YEAR reg contains the offset to 1972 */
        year += 1972;
 
-       printk(KERN_INFO "vRTC: sec: %d min: %d hour: %d day: %d "
+       pr_info("vRTC: sec: %d min: %d hour: %d day: %d "
                "mon: %d year: %d\n", sec, min, hour, mday, mon, year);
 
        now->tv_sec = mktime(year, mon, mday, hour, min, sec);
@@ -109,8 +109,7 @@ int vrtc_set_mmss(const struct timespec *now)
                vrtc_cmos_write(tm.tm_sec, RTC_SECONDS);
                spin_unlock_irqrestore(&rtc_lock, flags);
        } else {
-               printk(KERN_ERR
-                      "%s: Invalid vRTC value: write of %lx to vRTC failed\n",
+               pr_err("%s: Invalid vRTC value: write of %lx to vRTC failed\n",
                        __FUNCTION__, now->tv_sec);
                retval = -EINVAL;
        }