]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rtc: m48t86: verify that the RTC is actually present
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Wed, 15 Feb 2017 16:35:23 +0000 (09:35 -0700)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Tue, 21 Feb 2017 17:16:31 +0000 (18:16 +0100)
commit3ea07127d9367250321df33bf9fee2ada362400c
treea90a7ad421fda70d1d36118cc0ba1cfa11c7bf08
parentb180cf8b0bce3e0e1eb9c5d78bfc9ef2559a0b22
rtc: m48t86: verify that the RTC is actually present

The RTC is an optional feature at purchase time on some Technologic
Systems boards. Verify that it actually exists by checking if the
last two bytes of the NVRAM can be changed.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-m48t86.c