aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-pcf85063.c
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@bootlin.com>2019-04-01 18:08:07 +0200
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2019-04-04 10:07:11 +0200
commit191c0da112e0e880587c50b692beff7ba5300a75 (patch)
tree411683b6db3f086576f116b1df4a05c303bfbfe3 /drivers/rtc/rtc-pcf85063.c
parentde311aa8d47f9fe8d11de305273a944578d92f67 (diff)
downloadlinux-191c0da112e0e880587c50b692beff7ba5300a75.tar.gz
rtc: pcf85063: remove bogus i2c functionality check
Only smbus reads and write are done in the driver, plain i2c functionality is not required. Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc/rtc-pcf85063.c')
-rw-r--r--drivers/rtc/rtc-pcf85063.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/rtc/rtc-pcf85063.c b/drivers/rtc/rtc-pcf85063.c
index ba65aa4a30401..559333197fa56 100644
--- a/drivers/rtc/rtc-pcf85063.c
+++ b/drivers/rtc/rtc-pcf85063.c
@@ -209,9 +209,6 @@ static int pcf85063_probe(struct i2c_client *client)
dev_dbg(&client->dev, "%s\n", __func__);
- if (!i2c_check_functionality(client->adapter, I2C_FUNC_I2C))
- return -ENODEV;
-
err = i2c_smbus_read_byte_data(client, PCF85063_REG_CTRL1);
if (err < 0) {
dev_err(&client->dev, "RTC chip is not present\n");