Skip to contentSkip to conversation

i2c: writing-client doc update complement

PATCH New Jean Delvare 1 participant 1 message Oct 31, 2005 I2C

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i2c: writing-client doc update complement

Hi Linus,

Can you please apply the following patch to your git tree? Thanks.

* * * * *

My latest update to the writing-clients i2c documentation file was incomplete, here's the complement.

Large parts of this file are still way out-of-date, but at least now the memory allocation and freeing instructions are consistent.

---

 Documentation/i2c/writing-clients |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/i2c/writing-clients +2 -2
@@ -412,7 +412,7 @@
         release_region(address,FOO_EXTENT);
     /* SENSORS ONLY END */
     ERROR1:
-      kfree(new_client);
+      kfree(data);
     ERROR0:
       return err;
   }
@@ -443,7 +443,7 @@
       release_region(client->addr,LM78_EXTENT);
     /* HYBRID SENSORS CHIP ONLY END */
 
-    kfree(data);
+    kfree(i2c_get_clientdata(client));
     return 0;
   }
 
Signature · 1 line
Jean Delvare