]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Intel: bytcht_es8316: fix kernel oops with platform_name override
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Tue, 4 Jun 2019 20:08:56 +0000 (15:08 -0500)
committerMark Brown <broonie@kernel.org>
Thu, 6 Jun 2019 16:23:47 +0000 (17:23 +0100)
commit1b35f02f2be18bef9489698fddc9810f3a7fc3f3
tree54e092c0dbdbbcc7d89e43519642200638e9b74f
parent25bac07c6c50ffd02958070505107ba24cc0d50a
ASoC: Intel: bytcht_es8316: fix kernel oops with platform_name override

The platform override code uses devm_ functions to allocate memory for
the new name but the card device is not initialized. Fix by moving the
init earlier.

Fixes: 3cd2475fc1630 ("ASoC: Intel: bytcht_es8316: platform name fixup support")
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/bytcht_es8316.c