diff options
Diffstat (limited to 'drivers/hwmon/lm78.c')
-rw-r--r-- | drivers/hwmon/lm78.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/hwmon/lm78.c b/drivers/hwmon/lm78.c index ec601bbf91b9..f284ecbb9ca8 100644 --- a/drivers/hwmon/lm78.c +++ b/drivers/hwmon/lm78.c | |||
@@ -613,6 +613,12 @@ static int lm78_detect(struct i2c_adapter *adapter, int address, int kind) | |||
613 | err = -ENODEV; | 613 | err = -ENODEV; |
614 | goto ERROR2; | 614 | goto ERROR2; |
615 | } | 615 | } |
616 | /* Explicitly prevent the misdetection of Winbond chips */ | ||
617 | i = lm78_read_value(data, 0x4f); | ||
618 | if (i == 0xa3 || i == 0x5c) { | ||
619 | err = -ENODEV; | ||
620 | goto ERROR2; | ||
621 | } | ||
616 | } | 622 | } |
617 | 623 | ||
618 | /* Determine the chip type. */ | 624 | /* Determine the chip type. */ |