commit | c18b4c52c755175dc62aed7b409dca24f028ce76 | [log] [tgz] |
---|---|---|
author | Mirza Krak <mirza.krak@hostmobility.com> | Mon Oct 17 15:53:31 2016 +0200 |
committer | Alexandre Belloni <alexandre.belloni@free-electrons.com> | Fri Nov 04 23:08:59 2016 +0100 |
tree | 95208b94213cc244f6d3a098f88bc0d73456c747 | |
parent | aaa6f6acaa5f89994103384cf7a12d12bb8a1b46 [diff] |
rtc: pcf85063: do not register a RTC device if chip is not present Add a sanity check to see if chip is present. If we can not communicate with the chip there is no point in registering a RTC device. Signed-off-by: Mirza Krak <mirza.krak@hostmobility.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>