|
@@ -1032,10 +1032,10 @@ static int nmk_i2c_probe(struct amba_device *adev, const struct amba_id *id)
|
|
adap = &dev->adap;
|
|
adap = &dev->adap;
|
|
adap->dev.of_node = np;
|
|
adap->dev.of_node = np;
|
|
adap->dev.parent = &adev->dev;
|
|
adap->dev.parent = &adev->dev;
|
|
- adap->owner = THIS_MODULE;
|
|
|
|
- adap->class = I2C_CLASS_HWMON | I2C_CLASS_SPD | I2C_CLASS_DEPRECATED;
|
|
|
|
- adap->algo = &nmk_i2c_algo;
|
|
|
|
- adap->timeout = msecs_to_jiffies(dev->timeout);
|
|
|
|
|
|
+ adap->owner = THIS_MODULE;
|
|
|
|
+ adap->class = I2C_CLASS_DEPRECATED;
|
|
|
|
+ adap->algo = &nmk_i2c_algo;
|
|
|
|
+ adap->timeout = msecs_to_jiffies(dev->timeout);
|
|
snprintf(adap->name, sizeof(adap->name),
|
|
snprintf(adap->name, sizeof(adap->name),
|
|
"Nomadik I2C at %pR", &adev->res);
|
|
"Nomadik I2C at %pR", &adev->res);
|
|
|
|
|