sm501: fixes for akpms comments on gpiolib addition
authorBen Dooks <ben-linux@fluff.org>
Fri, 25 Jul 2008 08:46:02 +0000 (01:46 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 25 Jul 2008 17:53:30 +0000 (10:53 -0700)
commit28130bea3bcfefe3437b0a5dcab786f1f0296953
tree2306a07e595eecf299b540c88d078e75a65c8c89
parent42cd2366fb9b58cdfc1855be32b31a78e40b2079
sm501: fixes for akpms comments on gpiolib addition

Fixup the comments from the patch that added the gpiolib support from
Andrew Morton.  These include spotting some missing frees on error or
release, and changing a memcpy for a type-safe assingment.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/mfd/sm501.c