ASoC: Atmel: ClassD: unregister codec when error occurs
authorSongjun Wu <songjun.wu@atmel.com>
Fri, 11 Dec 2015 03:07:37 +0000 (11:07 +0800)
committerMark Brown <broonie@kernel.org>
Sat, 12 Dec 2015 22:57:00 +0000 (22:57 +0000)
commit32e69bad8ed9ed4e1bf1fd8217b61d5f87996253
tree740c364030d2e8653d4726e05a8b35536b35782a
parent8005c49d9aea74d382f474ce11afbbc7d7130bec
ASoC: Atmel: ClassD: unregister codec when error occurs

Add code to unregister codec in probe function,
when the error occurs after the codec is registered.

Signed-off-by: Songjun Wu <songjun.wu@atmel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/atmel/atmel-classd.c