Skip to content

Commit

Permalink
[PATCH] i2c: writing-client doc update complement
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jean Delvare authored and Greg Kroah-Hartman committed Nov 8, 2005
1 parent f093182 commit a852daa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Documentation/i2c/writing-clients
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit a852daa

Please sign in to comment.