]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: SOF: loader: load_firmware callback is mandatory, treat it like that
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Tue, 14 Sep 2021 12:53:56 +0000 (15:53 +0300)
committerMark Brown <broonie@kernel.org>
Wed, 15 Sep 2021 12:12:28 +0000 (13:12 +0100)
commit372714262e4ea656041b3ef314d77df526739052
tree42ab6deb39ef1c7c6832b6da2a0feda786978efe
parentf61400a060998b180bd0c3ea01afcf08bdae7545
ASoC: SOF: loader: load_firmware callback is mandatory, treat it like that

Since the load_firmware callback in snd_sof_dsp_ops is mandatory and it
is tested during probe.

Move the snd_sof_load_firmware() wrapper to ops.h as inline and drop the
check of sof_ops(sdev)->load_firmware

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20210914125356.19828-1-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/loader.c
sound/soc/sof/ops.h
sound/soc/sof/sof-priv.h