Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: SOF: nocodec: Drop empty platform remove function

A remove callback just returning 0 is equivalent to no remove callback
at all. So drop the useless function.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20221212205406.3771071-16-u.kleine-koenig@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Uwe Kleine-König and committed by
Mark Brown
603d96c9 394296ee

-6
-6
sound/soc/sof/nocodec.c
··· 103 103 return devm_snd_soc_register_card(&pdev->dev, card); 104 104 } 105 105 106 - static int sof_nocodec_remove(struct platform_device *pdev) 107 - { 108 - return 0; 109 - } 110 - 111 106 static struct platform_driver sof_nocodec_audio = { 112 107 .probe = sof_nocodec_probe, 113 - .remove = sof_nocodec_remove, 114 108 .driver = { 115 109 .name = "sof-nocodec", 116 110 .pm = &snd_soc_pm_ops,