]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Intel: cht_bsw_nau8824: fix kernel oops with platform_name override
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Tue, 4 Jun 2019 20:08:57 +0000 (15:08 -0500)
committerMark Brown <broonie@kernel.org>
Thu, 6 Jun 2019 16:24:08 +0000 (17:24 +0100)
commit29ad64d11c0a599cf04ef90d731dfe4cd326bc82
tree0e19ea86514feda8382e69cee4155ddde189a645
parentfdea99a815d07a9a14ef2a022c0f091bfaed0b3a
ASoC: Intel: cht_bsw_nau8824: 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: 00960e6f1a911 ("ASoC: Intel: cht_bsw_nau8824: 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/cht_bsw_nau8824.c