diff options
author | Mirza Krak <mirza.krak@hostmobility.com> | 2016-10-17 15:53:31 +0200 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2016-11-04 23:08:59 +0100 |
commit | c18b4c52c755175dc62aed7b409dca24f028ce76 (patch) | |
tree | 95208b94213cc244f6d3a098f88bc0d73456c747 /drivers/rtc/rtc-lib.c | |
parent | aaa6f6acaa5f89994103384cf7a12d12bb8a1b46 (diff) | |
download | linux-c18b4c52c755175dc62aed7b409dca24f028ce76.tar.gz linux-c18b4c52c755175dc62aed7b409dca24f028ce76.tar.bz2 linux-c18b4c52c755175dc62aed7b409dca24f028ce76.zip |
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>
Diffstat (limited to 'drivers/rtc/rtc-lib.c')
0 files changed, 0 insertions, 0 deletions