ASoC: Intel: Skylake: Don't return failure on machine driver reload
authorAmadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Mon, 17 Jun 2019 11:36:37 +0000 (13:36 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 25 Jun 2019 14:33:08 +0000 (15:33 +0100)
When we unload and reload machine driver, we shouldn't return that we
failed to initialize. This allows to reload machine driver, without
having to unload whole stack.

Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/skylake/skl-pcm.c

index da01359cfdfd0ba5b02b05d69df7604db8fce319..c03327ed94a0f90c9a36acde1f2e8504bf831416 100644 (file)
@@ -1439,11 +1439,6 @@ static int skl_platform_soc_probe(struct snd_soc_component *component)
                if (!ops)
                        return -EIO;
 
-               if (!skl->skl_sst->is_first_boot) {
-                       dev_err(component->dev, "DSP reports first boot done!!!\n");
-                       return -EIO;
-               }
-
                /*
                 * Disable dynamic clock and power gating during firmware
                 * and library download