Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

rtc: mv: correct 24 hour error message

The driver can't accommodate the 12 hour mode but the error message states
that the 24 hour mode is not supported.
Also fix the typos (hour vs hours).

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>

+4 -4
+4 -4
drivers/rtc/rtc-mv.c
··· 78 78 79 79 second = rtc_time & 0x7f; 80 80 minute = (rtc_time >> RTC_MINUTES_OFFS) & 0x7f; 81 - hour = (rtc_time >> RTC_HOURS_OFFS) & 0x3f; /* assume 24 hours mode */ 81 + hour = (rtc_time >> RTC_HOURS_OFFS) & 0x3f; /* assume 24 hour mode */ 82 82 wday = (rtc_time >> RTC_WDAY_OFFS) & 0x7; 83 83 84 84 day = rtc_date & 0x3f; ··· 109 109 110 110 second = rtc_time & 0x7f; 111 111 minute = (rtc_time >> RTC_MINUTES_OFFS) & 0x7f; 112 - hour = (rtc_time >> RTC_HOURS_OFFS) & 0x3f; /* assume 24 hours mode */ 112 + hour = (rtc_time >> RTC_HOURS_OFFS) & 0x3f; /* assume 24 hour mode */ 113 113 wday = (rtc_time >> RTC_WDAY_OFFS) & 0x7; 114 114 115 115 day = rtc_date & 0x3f; ··· 240 240 if (!IS_ERR(pdata->clk)) 241 241 clk_prepare_enable(pdata->clk); 242 242 243 - /* make sure the 24 hours mode is enabled */ 243 + /* make sure the 24 hour mode is enabled */ 244 244 rtc_time = readl(pdata->ioaddr + RTC_TIME_REG_OFFS); 245 245 if (rtc_time & RTC_HOURS_12H_MODE) { 246 - dev_err(&pdev->dev, "24 Hours mode not supported.\n"); 246 + dev_err(&pdev->dev, "12 Hour mode is enabled but not supported.\n"); 247 247 ret = -EINVAL; 248 248 goto out; 249 249 }