From: Jarkko Nikula Date: Wed, 3 Nov 2010 09:24:23 +0000 (+0000) Subject: omap: McBSP: Fix potential memory leak in omap_mcbsp_remove X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2095e9b966d4e86081b76119afc5bceef0060256;p=pandora-kernel.git omap: McBSP: Fix potential memory leak in omap_mcbsp_remove Function omap_mcbsp_probe allocates struct omap_mcbsp *mcbsp but it is not freed in omap_mcbsp_remove. Fix this, remove unneeded structure cleanups and clk_disable calls since they are not needed here. This is not problem currently but becomes if the mcbsp driver is ever modularized. Signed-off-by: Jarkko Nikula Signed-off-by: Tony Lindgren --- Reading git-diff-tree failed