From: Tony Prisk Date: Fri, 18 Jan 2013 02:05:32 +0000 (+1300) Subject: serial: vt8500: Cleanup code using devm_ function X-Git-Tag: v3.9-rc1~125^2~64 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49abd90c4bb7b35e84c430dbba6b6368786fbf62;p=pandora-kernel.git serial: vt8500: Cleanup code using devm_ function Convert the last memory allocation (vt8500_port) to use devm_kzalloc and remove the fail path cleanup code from vt8500_serial_probe. Reorder iomem mapping above clk_enable to simplify fail code. The clock is only enabled if all other resources are available. Signed-off-by: Tony Prisk Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed