aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/adm9240.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hwmon/adm9240.c')
-rw-r--r--drivers/hwmon/adm9240.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/adm9240.c b/drivers/hwmon/adm9240.c
index 82edf286ebdc..6b20b28aa3b9 100644
--- a/drivers/hwmon/adm9240.c
+++ b/drivers/hwmon/adm9240.c
@@ -635,7 +635,7 @@ static int adm9240_attach_adapter(struct i2c_adapter *adapter)
635{ 635{
636 if (!(adapter->class & I2C_CLASS_HWMON)) 636 if (!(adapter->class & I2C_CLASS_HWMON))
637 return 0; 637 return 0;
638 return i2c_detect(adapter, &addr_data, adm9240_detect); 638 return i2c_probe(adapter, &addr_data, adm9240_detect);
639} 639}
640 640
641static int adm9240_detach_client(struct i2c_client *client) 641static int adm9240_detach_client(struct i2c_client *client)