]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb36c71eff4f0344982fb28192a6185f0610ddabe
tree95208b94213cc244f6d3a098f88bc0d73456c747
parentc86996614d0ca9d2ae9e992dc930a7a3da6678c8
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