From: Tony Prisk Date: Fri, 18 Jan 2013 04:58:22 +0000 (+1300) Subject: gpio/vt8500: memory cleanup missing X-Git-Tag: v3.9-rc1~76^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f01d30ee191a74f1e7a2ac0710f064f472d000a;p=pandora-kernel.git gpio/vt8500: memory cleanup missing This driver is missing a .remove callback, and the fail path on probe is incomplete. If an error occurs in vt8500_add_chips, gpio_base is not unmapped. The driver is also ignoring the return value from this function so if a chip fails to register it completes as successful. Replaced pr_err with dev_err in vt8500_add_chips since the device is available. There is also no .remove callback defined so the function is added. Signed-off-by: Tony Prisk Signed-off-by: Grant Likely --- Reading git-diff-tree failed