ASoC: Intel: Skylake: Ensure dai and dailink registration happens in sequence.
authorPankaj Bharadiya <pankaj.laxminarayan.bharadiya@intel.com>
Mon, 18 Dec 2017 05:16:50 +0000 (10:46 +0530)
committerMark Brown <broonie@kernel.org>
Wed, 20 Dec 2017 10:48:18 +0000 (10:48 +0000)
commit752c93aa72e60ba573bbcfcd508b9cc550db0b94
tree0e14a2b4911b11616eb3114790ed45cf9b07188a
parent8e9d8e19b3d0c36d45161233eee3f2d368efe3ac
ASoC: Intel: Skylake: Ensure dai and dailink registration happens in sequence.

Platform registration happens in probe work handler whereas machine
device is registered during skl_probe. This sometimes results in cpu
dais not found if the work handler is sufficiently delayed due to system
load, even with deferred probe of machine driver.

So move machine device registration after registering platform.

Signed-off-by: Pankaj Bharadiya <pankaj.laxminarayan.bharadiya@intel.com>
Signed-off-by: Subhransu S. Prusty <subhransu.s.prusty@intel.com>
Signed-off-by: Guneshwor Singh <guneshwor.o.singh@intel.com>
Acked-By: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/skylake/skl.c
sound/soc/intel/skylake/skl.h