]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/hwmon/it87.c
hwmon: VRM is not read from registers
[linux-2.6-omap-h63xx.git] / drivers / hwmon / it87.c
index cd741b79c17874c9beac60707ba75158f5ed20f8..6a182e14cf589d59f7a5d8e244b8aa9c34c0409d 100644 (file)
@@ -765,7 +765,7 @@ static DEVICE_ATTR(alarms, S_IRUGO, show_alarms, NULL);
 static ssize_t
 show_vrm_reg(struct device *dev, struct device_attribute *attr, char *buf)
 {
-       struct it87_data *data = it87_update_device(dev);
+       struct it87_data *data = dev_get_drvdata(dev);
        return sprintf(buf, "%u\n", data->vrm);
 }
 static ssize_t