mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 02:53:36 +02:00
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>
This commit is contained in:
parent
de311aa8d4
commit
191c0da112
|
|
@ -209,9 +209,6 @@ static int pcf85063_probe(struct i2c_client *client)
|
||||||
|
|
||||||
dev_dbg(&client->dev, "%s\n", __func__);
|
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);
|
err = i2c_smbus_read_byte_data(client, PCF85063_REG_CTRL1);
|
||||||
if (err < 0) {
|
if (err < 0) {
|
||||||
dev_err(&client->dev, "RTC chip is not present\n");
|
dev_err(&client->dev, "RTC chip is not present\n");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user