ASoC: soc core move card cleanup from soc_remove()
authorVinod Koul <vinod.koul@intel.com>
Thu, 13 Jan 2011 17:18:02 +0000 (22:48 +0530)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 13 Jan 2011 23:28:01 +0000 (23:28 +0000)
commitb0e264855cc42106cc41426e68651b5d67df444d
tree4751cdb6f67f3f51f7807646b869cca3b9a6e7d1
parent422650e65a41a61b2f92396dfa4faa6a4df89913
ASoC: soc core move card cleanup from soc_remove()

In soc_remove() the card resources are cleaned up.
This can also be done in card_unregister()

This patch move this cleanup into a new function and calls it from
card_unregister. This paves way for further work to allow card registartion
from machine.

Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Harsha Priya <priya.harsha@intel.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/soc-core.c