Messages in this thread Patch in this message | | | Subject | Re: [PATCH] I2C update for 2.6.9 | Date | Tue, 19 Oct 2004 17:18:23 -0700 | From | Greg KH <> |
| |
ChangeSet 1.1832.73.4, 2004/09/08 12:35:04-07:00, margitsw@t-online.de
[PATCH] I2C: minor lm85 fix
Jean scribeth : > Except lm85, but this should be fixed
Indeed, patch attached.
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/i2c/chips/lm85.c | 2 ++ 1 files changed, 2 insertions(+)
diff -Nru a/drivers/i2c/chips/lm85.c b/drivers/i2c/chips/lm85.c --- a/drivers/i2c/chips/lm85.c 2004-10-19 16:55:47 -07:00 +++ b/drivers/i2c/chips/lm85.c 2004-10-19 16:55:47 -07:00 @@ -707,6 +707,8 @@ int lm85_attach_adapter(struct i2c_adapter *adapter) { + if (!(adapter->class & I2C_CLASS_HWMON)) + return 0; return i2c_detect(adapter, &addr_data, lm85_detect); } - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |