rtc: pcf85063: do not register a RTC device if chip is not present
authorMirza Krak <mirza.krak@hostmobility.com>
Mon, 17 Oct 2016 13:53:31 +0000 (15:53 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Fri, 4 Nov 2016 22:08:59 +0000 (23:08 +0100)
commitc18b4c52c755175dc62aed7b409dca24f028ce76
tree95208b94213cc244f6d3a098f88bc0d73456c747
parentaaa6f6acaa5f89994103384cf7a12d12bb8a1b46
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>
drivers/rtc/rtc-pcf85063.c