Skip to content

Commit aed98b9

Browse files
maxnettorvalds
authored andcommitted
rtc: hctosys: do not treat lack of RTC device as error
When using device trees on the ARM platform, it is not certain at compile time whether or not the system will have a RTC. If one enables CONFIG_HCTOSYS just in case the system booted has a RTC, and it turns out not to be, this will result in a big fat "unable to open rtc device" error being printed to console, even when "quiet" is set in the kernel cmdline. Fix this by outputting the message with loglevel info instead. Signed-off-by: Floris Bos <[email protected]> Cc: Alessandro Zummo <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 86e6660 commit aed98b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/rtc/hctosys.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ static int __init rtc_hctosys(void)
3232
struct rtc_device *rtc = rtc_class_open(CONFIG_RTC_HCTOSYS_DEVICE);
3333

3434
if (rtc == NULL) {
35-
pr_err("%s: unable to open rtc device (%s)\n",
35+
pr_info("%s: unable to open rtc device (%s)\n",
3636
__FILE__, CONFIG_RTC_HCTOSYS_DEVICE);
3737
goto err_open;
3838
}

0 commit comments

Comments
 (0)