ASoC: intel: sof_sdw: add .exit callback function
authorBard Liao <yung-chuan.liao@linux.intel.com>
Thu, 20 Aug 2020 13:45:42 +0000 (21:45 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 21 Aug 2020 14:24:41 +0000 (15:24 +0100)
commit751365035b4f360369ed6b0990283fd25d4ee32c
treed6058c6f62f92b32c7d90be365c66b795e94aac7
parentb50747558855ff94523dbb7f08a8c9fadfdd9110
ASoC: intel: sof_sdw: add .exit callback function

We may allocate some resources in sof_sdw_codec_info .init function.
Adding a corresponding .exit function can help to release these resources.

Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20200820134542.8682-1-yung-chuan.liao@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/sof_sdw.c
sound/soc/intel/boards/sof_sdw_common.h