]> 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)
commitfdea99a815d07a9a14ef2a022c0f091bfaed0b3a
tree54e092c0dbdbbcc7d89e43519642200638e9b74f
parentc0a8c93416a2aa49a13e381a6d86897ca11ca27f
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: c77b3b7e0e624 ("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