diff options
Diffstat (limited to 'drivers/hwmon')
-rw-r--r-- | drivers/hwmon/lm75.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/hwmon/lm75.c b/drivers/hwmon/lm75.c index 5be164ed278e..79d7ebc9b14a 100644 --- a/drivers/hwmon/lm75.c +++ b/drivers/hwmon/lm75.c | |||
@@ -251,8 +251,12 @@ static int lm75_write_value(struct i2c_client *client, u8 reg, u16 value) | |||
251 | 251 | ||
252 | static void lm75_init_client(struct i2c_client *client) | 252 | static void lm75_init_client(struct i2c_client *client) |
253 | { | 253 | { |
254 | /* Initialize the LM75 chip */ | 254 | int reg; |
255 | lm75_write_value(client, LM75_REG_CONF, 0); | 255 | |
256 | /* Enable if in shutdown mode */ | ||
257 | reg = lm75_read_value(client, LM75_REG_CONF); | ||
258 | if (reg >= 0 && (reg & 0x01)) | ||
259 | lm75_write_value(client, LM75_REG_CONF, reg & 0xfe); | ||
256 | } | 260 | } |
257 | 261 | ||
258 | static struct lm75_data *lm75_update_device(struct device *dev) | 262 | static struct lm75_data *lm75_update_device(struct device *dev) |