<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">ChangeSet 1.1474.98.12, 2004/01/14 11:44:33-08:00, khali@linux-fr.org

[PATCH] I2C: Fix debug bug in lm83 driver

The following patch fixes lm83 failing to compile if DEBUG is set.


 drivers/i2c/chips/lm83.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


diff -Nru a/drivers/i2c/chips/lm83.c b/drivers/i2c/chips/lm83.c
--- a/drivers/i2c/chips/lm83.c	Mon Jan 19 15:31:08 2004
+++ b/drivers/i2c/chips/lm83.c	Mon Jan 19 15:31:08 2004
@@ -270,7 +270,7 @@
 		    &amp; 0x48) != 0x00) ||
 		    ((i2c_smbus_read_byte_data(new_client, LM83_REG_R_CONFIG)
 		    &amp; 0x41) != 0x00)) {
-			dev_dbg(&amp;client-&gt;dev,
+			dev_dbg(&amp;adapter-&gt;dev,
 			    "LM83 detection failed at 0x%02x.\n", address);
 			goto exit_free;
 		}
</pre></body></html>