From: Emil Goode Date: Mon, 28 May 2012 16:54:51 +0000 (+0200) Subject: video: bfin_adv7393fb: Fix cleanup code X-Git-Tag: v3.5-rc1~7^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c895305e806b4346006d3cfba2b432d52268ecd3;p=pandora-kernel.git video: bfin_adv7393fb: Fix cleanup code This patch fixes the cleanup code of the bfin_adv7393_fb_probe function. 1) The resources were not freed in the order that we allocated them so we call dma_free_coherent() before it was allocated. 2) The labels weren't in the right place which also meant that we freed resources that weren't allocated. 3) We should free gpio_free(P_IDENT(P_PPI0_FS3)) before returning. 4) Lets change the label names into something more meaningful. Signed-off-by: Emil Goode Acked-by: Dan Carpenter Signed-off-by: Florian Tobias Schandinat --- Reading git-diff-tree failed