X-Git-Url: http://www.pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fhwmon%2Flm78.c;h=f284ecbb9ca801688986f607b4ce7e2ec8f4eb7e;hb=ad3273be8e2a5bfe16f4940beef3da308daf259a;hp=ec601bbf91b9cbd71cd36eb2aa7e5e5cb67e60f0;hpb=18c73f90421f9a87a0f6bc3a08880d0f1f9b2a74;p=linux-2.6-omap-h63xx.git diff --git a/drivers/hwmon/lm78.c b/drivers/hwmon/lm78.c index ec601bbf91b..f284ecbb9ca 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) err = -ENODEV; goto ERROR2; } + /* Explicitly prevent the misdetection of Winbond chips */ + i = lm78_read_value(data, 0x4f); + if (i == 0xa3 || i == 0x5c) { + err = -ENODEV; + goto ERROR2; + } } /* Determine the chip type. */