aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/it87.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hwmon/it87.c')
-rw-r--r--drivers/hwmon/it87.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/it87.c b/drivers/hwmon/it87.c
index cd741b79c178..6a182e14cf58 100644
--- a/drivers/hwmon/it87.c
+++ b/drivers/hwmon/it87.c
@@ -765,7 +765,7 @@ static DEVICE_ATTR(alarms, S_IRUGO, show_alarms, NULL);
765static ssize_t 765static ssize_t
766show_vrm_reg(struct device *dev, struct device_attribute *attr, char *buf) 766show_vrm_reg(struct device *dev, struct device_attribute *attr, char *buf)
767{ 767{
768 struct it87_data *data = it87_update_device(dev); 768 struct it87_data *data = dev_get_drvdata(dev);
769 return sprintf(buf, "%u\n", data->vrm); 769 return sprintf(buf, "%u\n", data->vrm);
770} 770}
771static ssize_t 771static ssize_t