diff options
author | Jean Delvare <[email protected]> | 2012-07-12 22:47:37 +0200 |
---|---|---|
committer | Jean Delvare <[email protected]> | 2012-07-12 22:47:37 +0200 |
commit | 41002f8dd5938d5ad1d008ce5bfdbfe47fa7b4e8 (patch) | |
tree | c09ffb6978413522cc37987a6fdf1bdb19ef6859 | |
parent | 918227bb1b59444a2c467711fd50cc22bb4a897b (diff) |
hwmon: (it87) Preserve configuration register bits on init
We were accidentally losing one bit in the configuration register on
device initialization. It was reported to freeze one specific system
right away. Properly preserve all bits we don't explicitly want to
change in order to prevent that.
Reported-by: Stevie Trujillo <[email protected]>
Cc: [email protected]
Signed-off-by: Jean Delvare <[email protected]>
Reviewed-by: Guenter Roeck <[email protected]>
-rw-r--r-- | drivers/hwmon/it87.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/it87.c b/drivers/hwmon/it87.c index e7701d99f8e8..f1de3979181f 100644 --- a/drivers/hwmon/it87.c +++ b/drivers/hwmon/it87.c @@ -2341,7 +2341,7 @@ static void __devinit it87_init_device(struct platform_device *pdev) /* Start monitoring */ it87_write_value(data, IT87_REG_CONFIG, - (it87_read_value(data, IT87_REG_CONFIG) & 0x36) + (it87_read_value(data, IT87_REG_CONFIG) & 0x3e) | (update_vbat ? 0x41 : 0x01)); } |