summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/spd5118.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hwmon/spd5118.c')
-rw-r--r--drivers/hwmon/spd5118.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hwmon/spd5118.c b/drivers/hwmon/spd5118.c
index de6cf07f3007..ac94a6779360 100644
--- a/drivers/hwmon/spd5118.c
+++ b/drivers/hwmon/spd5118.c
@@ -646,8 +646,8 @@ static struct i2c_driver spd5118_driver = {
},
.probe = spd5118_probe,
.id_table = spd5118_id,
- .detect = spd5118_detect,
- .address_list = normal_i2c,
+ .detect = IS_ENABLED(CONFIG_SENSORS_SPD5118_DETECT) ? spd5118_detect : NULL,
+ .address_list = IS_ENABLED(CONFIG_SENSORS_SPD5118_DETECT) ? normal_i2c : NULL,
};
module_i2c_driver(spd5118_driver);