i2c: Don't uselessly set i2c_adapter.retries
I2C adapter drivers are supposed to handle retries on nack by themselves if they do, so there's no point in setting .retries if they don't. As this retry mechanism is going away (at least in its current form), clean this up now so that we don't get build failures later. Signed-off-by: Jean Delvare <khali@linux-fr.org>
This commit is contained in:
@@ -362,8 +362,6 @@ omap_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[], int num)
|
||||
|
||||
omap_i2c_enable_clocks(dev);
|
||||
|
||||
/* REVISIT: initialize and use adap->retries. This is an optional
|
||||
* feature */
|
||||
if ((r = omap_i2c_wait_for_bb(dev)) < 0)
|
||||
goto out;
|
||||
|
||||
|
Reference in New Issue
Block a user