]> asedeno.scripts.mit.edu Git - linux.git/commit
ASoC: Intel: bytcht_es8316: use correct drvdata in snd_byt_cht_es8316_mc_remove()
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 10 Jan 2019 01:43:09 +0000 (01:43 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 10 Jan 2019 10:53:35 +0000 (10:53 +0000)
commitf833fe2056b3a6d69598ef029cede6e77dcc1b14
tree07c770a16783ebc4bd0e0e34082c8a4dcde1bd5e
parent04d979d7a7bac2f645cd827ea37e5ffa5b4e1f97
ASoC: Intel: bytcht_es8316: use correct drvdata in snd_byt_cht_es8316_mc_remove()

The snd_byt_cht_es8316_mc_remove() use the platform drvdata as a type
of 'struct byt_cht_es8316_private', but snd_byt_cht_es8316_mc_probe()
set it to 'struct snd_soc_card', as suggested by Dan Carpenter, fix
the usage in snd_byt_cht_es8316_mc_remove().

Fixes: 0d3e91da0750 ("ASoC: Intel: bytcht_es8316: Add external speaker mux support")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/bytcht_es8316.c