aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/w83791d.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hwmon/w83791d.c')
-rw-r--r--drivers/hwmon/w83791d.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/w83791d.c b/drivers/hwmon/w83791d.c
index de4eb3e7b271..b6f2ebf9f9cf 100644
--- a/drivers/hwmon/w83791d.c
+++ b/drivers/hwmon/w83791d.c
@@ -832,7 +832,7 @@ static DEVICE_ATTR(cpu0_vid, S_IRUGO, show_vid_reg, NULL);
832static ssize_t show_vrm_reg(struct device *dev, 832static ssize_t show_vrm_reg(struct device *dev,
833 struct device_attribute *attr, char *buf) 833 struct device_attribute *attr, char *buf)
834{ 834{
835 struct w83791d_data *data = w83791d_update_device(dev); 835 struct w83791d_data *data = dev_get_drvdata(dev);
836 return sprintf(buf, "%d\n", data->vrm); 836 return sprintf(buf, "%d\n", data->vrm);
837} 837}
838 838