rtc: hctosys: do not treat lack of RTC device as error
authorFloris Bos <bos@je-eigen-domein.nl>
Thu, 16 Apr 2015 19:45:12 +0000 (12:45 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 17 Apr 2015 13:04:00 +0000 (09:04 -0400)
commitaed98b9a1be6fcf1685dfd37f0a3e78e92a21f7d
tree25bb548d03ce5acd2e0294954955839b922fb8bf
parent86e66604fca053e5ecb2427538aa233637119409
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 <bos@je-eigen-domein.nl>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/hctosys.c