Re: [PATCH 2.6.38] omap: McBSP: Fix potential memory leak in omap_mcbsp_remove

2010-11-16 Thread Tony Lindgren
* Jarkko Nikula jhnik...@gmail.com [101103 02:15]: 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

[PATCH 2.6.38] omap: McBSP: Fix potential memory leak in omap_mcbsp_remove

2010-11-03 Thread Jarkko Nikula
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.