diff options
Diffstat (limited to 'drivers/hwmon/lm87.c')
-rw-r--r-- | drivers/hwmon/lm87.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/lm87.c b/drivers/hwmon/lm87.c index 3ce825489e34..988ae1c4aada 100644 --- a/drivers/hwmon/lm87.c +++ b/drivers/hwmon/lm87.c | |||
@@ -747,6 +747,7 @@ static int lm87_detect(struct i2c_adapter *adapter, int address, int kind) | |||
747 | } | 747 | } |
748 | 748 | ||
749 | if (!(data->channel & CHAN_NO_VID)) { | 749 | if (!(data->channel & CHAN_NO_VID)) { |
750 | data->vrm = vid_which_vrm(); | ||
750 | if ((err = device_create_file(&new_client->dev, | 751 | if ((err = device_create_file(&new_client->dev, |
751 | &dev_attr_cpu0_vid)) | 752 | &dev_attr_cpu0_vid)) |
752 | || (err = device_create_file(&new_client->dev, | 753 | || (err = device_create_file(&new_client->dev, |
@@ -779,7 +780,6 @@ static void lm87_init_client(struct i2c_client *client) | |||
779 | u8 config; | 780 | u8 config; |
780 | 781 | ||
781 | data->channel = lm87_read_value(client, LM87_REG_CHANNEL_MODE); | 782 | data->channel = lm87_read_value(client, LM87_REG_CHANNEL_MODE); |
782 | data->vrm = vid_which_vrm(); | ||
783 | 783 | ||
784 | config = lm87_read_value(client, LM87_REG_CONFIG); | 784 | config = lm87_read_value(client, LM87_REG_CONFIG); |
785 | if (!(config & 0x01)) { | 785 | if (!(config & 0x01)) { |