aboutsummaryrefslogtreecommitdiffstats
path: root/i2c
diff options
context:
space:
mode:
authorGreg KH <greg@press.kroah.org>2005-11-03 17:44:00 -0800
committerGreg Kroah-Hartman <gregkh@suse.de>2005-11-03 17:44:00 -0800
commite594c048d8d4ac4ecb3f34123e061a2251637ab8 (patch)
treeb2f02b1675f88e5eb5ea09bf290d8cced83ac64c /i2c
parentc8b78238953b1fd78888b570fee8070fb23632ca (diff)
downloadpatches-e594c048d8d4ac4ecb3f34123e061a2251637ab8.tar.gz
new pci and i2c and usb patches
Diffstat (limited to 'i2c')
-rw-r--r--i2c/i2c-doc-writing-clients-fix-2.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/i2c/i2c-doc-writing-clients-fix-2.patch b/i2c/i2c-doc-writing-clients-fix-2.patch
new file mode 100644
index 0000000000000..0aaa50bb5951a
--- /dev/null
+++ b/i2c/i2c-doc-writing-clients-fix-2.patch
@@ -0,0 +1,40 @@
+From khali@linux-fr.org Wed Nov 2 15:35:52 2005
+Date: Wed, 2 Nov 2005 21:42:48 +0100
+From: Jean Delvare <khali@linux-fr.org>
+To: Greg KH <greg@kroah.com>
+Subject: i2c: writing-client doc update complement
+Message-Id: <20051102214248.29ef2124.khali@linux-fr.org>
+Content-Disposition: inline; filename=i2c-doc-writing-clients-fix-2.patch
+
+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.
+
+Signed-off-by: Jean Delvare <khali@linux-fr.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
+---
+ Documentation/i2c/writing-clients | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+--- gregkh-2.6.orig/Documentation/i2c/writing-clients
++++ gregkh-2.6/Documentation/i2c/writing-clients
+@@ -412,7 +412,7 @@ For now, you can ignore the `flags' para
+ release_region(address,FOO_EXTENT);
+ /* SENSORS ONLY END */
+ ERROR1:
+- kfree(new_client);
++ kfree(data);
+ ERROR0:
+ return err;
+ }
+@@ -443,7 +443,7 @@ much simpler than the attachment code, f
+ release_region(client->addr,LM78_EXTENT);
+ /* HYBRID SENSORS CHIP ONLY END */
+
+- kfree(data);
++ kfree(i2c_get_clientdata(client));
+ return 0;
+ }
+