Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

-9
-9
drivers/rtc/rtc-pcf2127.c
··· 1054 1054 return ret; 1055 1055 } 1056 1056 1057 - /* TS input pin driven to GND detection is supported by all variants. 1058 - * Make sure that interrupt bit is defined. 1059 - */ 1060 - if (pcf2127->cfg->ts[ts_id].gnd_detect_bit == 0) { 1061 - dev_err(dev, "%s: tamper detection to GND configuration invalid\n", 1062 - __func__); 1063 - return -EINVAL; 1064 - } 1065 - 1066 1057 /* 1067 1058 * Enable interrupt generation when TSF timestamp flag is set. 1068 1059 * Interrupt signals are open-drain outputs and can be left floating if