summaryrefslogtreecommitdiffstats
path: root/Documentation/i2c/writing-clients
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2005-11-09 14:13:53 -0800
committerLinus Torvalds <torvalds@g5.osdl.org>2005-11-09 14:13:53 -0800
commit969780f8079994f161de991870feba68f49fc3d7 (patch)
tree2e6664c43be38a6cfdd20338d20385368c1b7a80 /Documentation/i2c/writing-clients
parentad8f76be48d817b48222411ae16a7dfe257bdb24 (diff)
parent8750197f0e8f5467297d72e11444cf32f29d790f (diff)
downloadop-kernel-dev-969780f8079994f161de991870feba68f49fc3d7.zip
op-kernel-dev-969780f8079994f161de991870feba68f49fc3d7.tar.gz
Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/i2c-2.6
Diffstat (limited to 'Documentation/i2c/writing-clients')
-rw-r--r--Documentation/i2c/writing-clients4
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/i2c/writing-clients b/Documentation/i2c/writing-clients
index cff7b65..d19993c 100644
--- a/Documentation/i2c/writing-clients
+++ b/Documentation/i2c/writing-clients
@@ -412,7 +412,7 @@ For now, you can ignore the `flags' parameter. It is there for future use.
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, fortunately!
release_region(client->addr,LM78_EXTENT);
/* HYBRID SENSORS CHIP ONLY END */
- kfree(data);
+ kfree(i2c_get_clientdata(client));
return 0;
}
OpenPOWER on IntegriCloud