aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@bootlin.com>2019-04-10 22:56:02 +0200
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2019-04-11 16:42:55 +0200
commit176a5ee32c250918e8e2ad5e0ce0f35eaf3479ee (patch)
tree0881fd960f6c825349889d87335ff7b154d9ac97 /drivers/rtc
parentrtc: pcf85363: set range (diff)
downloadlinux-dev-176a5ee32c250918e8e2ad5e0ce0f35eaf3479ee.tar.xz
linux-dev-176a5ee32c250918e8e2ad5e0ce0f35eaf3479ee.zip
rtc: pcf85363: remove bogus i2c functionality check
regmap is abstracting the i2c functionalities the best it can, there is no need to check. Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc')
-rw-r--r--drivers/rtc/rtc-pcf85363.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/rtc/rtc-pcf85363.c b/drivers/rtc/rtc-pcf85363.c
index 8d538a253d72..5e369846795e 100644
--- a/drivers/rtc/rtc-pcf85363.c
+++ b/drivers/rtc/rtc-pcf85363.c
@@ -385,9 +385,6 @@ static int pcf85363_probe(struct i2c_client *client,
if (data)
config = data;
- if (!i2c_check_functionality(client->adapter, I2C_FUNC_I2C))
- return -ENODEV;
-
pcf85363 = devm_kzalloc(&client->dev, sizeof(struct pcf85363),
GFP_KERNEL);
if (!pcf85363)