]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
rtc: pcf85363: remove bogus i2c functionality check
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 10 Apr 2019 20:56:02 +0000 (22:56 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 11 Apr 2019 14:42:55 +0000 (16:42 +0200)
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>
drivers/rtc/rtc-pcf85363.c

index 8d538a253d7275310ea87ae886016df61e953d61..5e369846795e786bcc75cfdfd288facec62f711f 100644 (file)
@@ -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)