aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/adm1021.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hwmon/adm1021.c')
-rw-r--r--drivers/hwmon/adm1021.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/adm1021.c b/drivers/hwmon/adm1021.c
index da3e2c9f705f..21f6dfeb04ac 100644
--- a/drivers/hwmon/adm1021.c
+++ b/drivers/hwmon/adm1021.c
@@ -187,7 +187,7 @@ static int adm1021_attach_adapter(struct i2c_adapter *adapter)
187{ 187{
188 if (!(adapter->class & I2C_CLASS_HWMON)) 188 if (!(adapter->class & I2C_CLASS_HWMON))
189 return 0; 189 return 0;
190 return i2c_detect(adapter, &addr_data, adm1021_detect); 190 return i2c_probe(adapter, &addr_data, adm1021_detect);
191} 191}
192 192
193static int adm1021_detect(struct i2c_adapter *adapter, int address, int kind) 193static int adm1021_detect(struct i2c_adapter *adapter, int address, int kind)