ASoC: SOF: core: remove snd_soc_unregister_component in case of error
authorRanjani Sridharan <ranjani.sridharan@linux.intel.com>
Fri, 24 May 2019 19:09:18 +0000 (14:09 -0500)
committerMark Brown <broonie@kernel.org>
Tue, 28 May 2019 14:46:58 +0000 (15:46 +0100)
commit13931ae31b67a8a26a4cd417088fc43e3d4a8591
tree833e06ccd9fad976e71911628aa6e9629d177d2c
parentb85459aafae63f250606bd406d4f7537fda33b51
ASoC: SOF: core: remove snd_soc_unregister_component in case of error

No need to call snd_soc_unregister_component in case of error
because the component device is resource-managed.

Fixes: c16211d6226 ("ASoC: SOF: Add Sound Open Firmware driver core")
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/core.c