]> git.baikalelectronics.ru Git - kernel.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)
commit203546cda755b360699ca82b061549f114a84fdd
treea90a7ad421fda70d1d36118cc0ba1cfa11c7bf08
parente98ad0a7dfae1409296ab50fbcbde4f38b6b6cd9
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