]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: SOF: simplify snd_sof_device_remove()
authorRanjani Sridharan <ranjani.sridharan@linux.intel.com>
Mon, 7 Mar 2022 18:10:55 +0000 (10:10 -0800)
committerMark Brown <broonie@kernel.org>
Tue, 8 Mar 2022 12:27:40 +0000 (12:27 +0000)
commit18633c48a69fa0c2e1260a2dbe6dd5c82b7ed16e
tree27dfc11cb149718fd88b6375e7decd853d7e85f1
parente675aba4e62afe7a938963e28e419392fc5b6806
ASoC: SOF: simplify snd_sof_device_remove()

The commit "ASoC: SOF: core: Unregister machine driver before IPC and
debugfs" moved the call to unregister the machine driver to be done
before freeing the IPC. With this change, we can safely move the call to
snd_sof_remove() inside the same if() block just above.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20220307181111.49392-3-ranjani.sridharan@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/core.c