1
0
Fork 0

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>
hifive-unleashed-5.2
Alexandre Belloni 2019-04-10 22:56:02 +02:00
parent c0ec8319cc
commit 176a5ee32c
1 changed files with 0 additions and 3 deletions

View 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)