From f1416a77562357369b6f6ab6be225a5e13cad5aa Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Sat, 24 Oct 2009 13:28:47 +0200 Subject: [PATCH] --- yaml --- r: 167831 b: refs/heads/master c: 371dc4a6d8c3c74a9a1c74b87c2affb3fcef6500 h: refs/heads/master i: 167829: 7c77b34bd05afb45733654d4d05fe225510deb91 167827: f3ddbd3b805763ed4061a9cf151e52ebe0b7b44e 167823: 7757e4ce5020dd6aa194afb091efa8eb6e811410 v: v3 --- [refs] | 2 +- trunk/drivers/hwmon/it87.c | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index fbb684eff114..39d08b673f5b 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 9d0914468fdf66d61a57e7c074b17a28eed4d3dd +refs/heads/master: 371dc4a6d8c3c74a9a1c74b87c2affb3fcef6500 diff --git a/trunk/drivers/hwmon/it87.c b/trunk/drivers/hwmon/it87.c index ffeb2a10e1a7..a3749cb0f181 100644 --- a/trunk/drivers/hwmon/it87.c +++ b/trunk/drivers/hwmon/it87.c @@ -1028,12 +1028,11 @@ static int __init it87_find(unsigned short *address, chip_type, *address, sio_data->revision); /* Read GPIO config and VID value from LDN 7 (GPIO) */ - if (chip_type != IT8705F_DEVID) { + if (sio_data->type != it87) { int reg; superio_select(GPIO); - if ((chip_type == it8718) || - (chip_type == it8720)) + if (sio_data->type == it8718 || sio_data->type == it8720) sio_data->vid_value = superio_inb(IT87_SIO_VID_REG); reg = superio_inb(IT87_SIO_PINX2_REG);