summaryrefslogtreecommitdiff
path: root/drivers/rtc
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@bootlin.com>2023-08-27 23:46:49 +0200
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2023-08-27 23:53:06 +0200
commiteeeb77716f5f7c03d157980c7ad3af037c61c8ae (patch)
tree5851afb42822f9b7da572089737ca81e628123af /drivers/rtc
parent2b0386d578836b9cd5d2e63cff38b7229c319e4a (diff)
rtc: pcf2127: remove useless check
This check is only useful when introducing support for a new RTC in the driver. Cut down the number of strings in th driver. Link: https://lore.kernel.org/r/20230827214649.537095-1-alexandre.belloni@bootlin.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc')
-rw-r--r--drivers/rtc/rtc-pcf2127.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/rtc/rtc-pcf2127.c b/drivers/rtc/rtc-pcf2127.c
index de8164e1b562..9c04c4e1a49c 100644
--- a/drivers/rtc/rtc-pcf2127.c
+++ b/drivers/rtc/rtc-pcf2127.c
@@ -1054,15 +1054,6 @@ static int pcf2127_enable_ts(struct device *dev, int ts_id)
return ret;
}
- /* TS input pin driven to GND detection is supported by all variants.
- * Make sure that interrupt bit is defined.
- */
- if (pcf2127->cfg->ts[ts_id].gnd_detect_bit == 0) {
- dev_err(dev, "%s: tamper detection to GND configuration invalid\n",
- __func__);
- return -EINVAL;
- }
-
/*
* Enable interrupt generation when TSF timestamp flag is set.
* Interrupt signals are open-drain outputs and can be left floating if