ASoC: wm_adsp: free memory when unloaded or closed
authorRichard Fitzgerald <rf@opensource.wolfsonmicro.com>
Wed, 27 Apr 2016 13:58:27 +0000 (14:58 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 27 Apr 2016 15:21:23 +0000 (16:21 +0100)
commit66225e98b985047ef214632413cc404a6341c960
tree1d31101eda5d9e238caaa41d338675e10cb9fb39
parent2ab8e744a437d39619b323d7303fa2e6513274b2
ASoC: wm_adsp: free memory when unloaded or closed

The patch adds a wm_adsp2_remove() function to ensure that memory
is freed when the driver is unloaded or shut down.

Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm_adsp.c
sound/soc/codecs/wm_adsp.h