Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 001d4c7a authored by Kuppuswamy Sathyanarayanan's avatar Kuppuswamy Sathyanarayanan Committed by H. Peter Anvin
Browse files

mrst: Fixed printk/pr_* related issues

parent 61e6cfa8
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -213,7 +213,7 @@ static void early_mrst_spi_putc(char c)
	}
	}


	if (!timeout)
	if (!timeout)
		pr_warning("MRST earlycon: timed out\n");
		pr_warn("MRST earlycon: timed out\n");
	else
	else
		max3110_write_data(c);
		max3110_write_data(c);
}
}
+1 −1
Original line number Original line Diff line number Diff line
@@ -328,7 +328,7 @@ static inline int __init setup_x86_mrst_timer(char *arg)
	else if (strcmp("lapic_and_apbt", arg) == 0)
	else if (strcmp("lapic_and_apbt", arg) == 0)
		mrst_timer_options = MRST_TIMER_LAPIC_APBT;
		mrst_timer_options = MRST_TIMER_LAPIC_APBT;
	else {
	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",
			   " use x86_mrst_timer=apbt_only or lapic_and_apbt\n",
			   arg);
			   arg);
		return -EINVAL;
		return -EINVAL;
+2 −3
Original line number Original line Diff line number Diff line
@@ -79,7 +79,7 @@ void vrtc_get_time(struct timespec *now)
	/* vRTC YEAR reg contains the offset to 1972 */
	/* vRTC YEAR reg contains the offset to 1972 */
	year += 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);
		"mon: %d year: %d\n", sec, min, hour, mday, mon, year);


	now->tv_sec = mktime(year, mon, mday, hour, min, sec);
	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);
		vrtc_cmos_write(tm.tm_sec, RTC_SECONDS);
		spin_unlock_irqrestore(&rtc_lock, flags);
		spin_unlock_irqrestore(&rtc_lock, flags);
	} else {
	} else {
		printk(KERN_ERR
		pr_err("%s: Invalid vRTC value: write of %lx to vRTC failed\n",
		       "%s: Invalid vRTC value: write of %lx to vRTC failed\n",
			__FUNCTION__, now->tv_sec);
			__FUNCTION__, now->tv_sec);
		retval = -EINVAL;
		retval = -EINVAL;
	}
	}