diff --git a/drivers/hwmon/emc1403.c b/drivers/hwmon/emc1403.c index 677da4f11467..d5c33d5c0389 100644 --- a/drivers/hwmon/emc1403.c +++ b/drivers/hwmon/emc1403.c @@ -294,7 +294,7 @@ static int emc1403_detect(struct i2c_client *client, } id = i2c_smbus_read_byte_data(client, THERMAL_REVISION_REG); - if (id != 0x01) + if (id < 0x01 || id > 0x04) return -ENODEV; return 0;