aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2009-11-07 19:11:41 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2009-12-08 11:17:33 -0800
commit909ec99b24903fcd15cd78b01c0925afeb46ebf3 (patch)
tree543d39d9a9505d1934a7cb62368a00e9cf8ba09e /drivers
parent34dcc7657b7e11976cb9ab67e0bd3135539c97ea (diff)
hwmon: (it87) Fix VID reading on IT8718F
commit 371dc4a6d8c3c74a9a1c74b87c2affb3fcef6500 upstream Comparing apples to bananas doesn't seem right. The bug has been there since support for the IT8718F was added, so VID never worked for this chip. Signed-off-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-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 c620b2000fa..f29ed0548e0 100644
--- a/drivers/hwmon/it87.c
+++ b/drivers/hwmon/it87.c
@@ -1017,7 +1017,7 @@ static int __init it87_find(unsigned short *address,
int reg;
superio_select(GPIO);
- if (chip_type == it8718)
+ if (sio_data->type == it8718)
sio_data->vid_value = superio_inb(IT87_SIO_VID_REG);
reg = superio_inb(IT87_SIO_PINX2_REG);