ASoC: remove a card from the list, if instantiation failed
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Thu, 18 Mar 2010 07:23:33 +0000 (08:23 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 19 Mar 2010 19:39:18 +0000 (19:39 +0000)
commitb2dfa62c525fbe4d89790b6fa90af7c3f1c052ae
treeca98c051d54a814493472c48b4ebe8f5cd8a0228
parentfd23b7dee5e4d369f620979cb120f53629389355
ASoC: remove a card from the list, if instantiation failed

If instantiation of a card failed, we still have to remove it from the
card list on unregistration. This fixes an Oops on Migo-R, triggering,
when after a failed firmware load attempt the driver modules are removed
and re-inserted again.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/soc-core.c