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

ASoC: bt-sco: 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>
Link: https://lore.kernel.org/r/20221212205406.3771071-9-u.kleine-koenig@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Uwe Kleine-König and committed by
Mark Brown
f9cc6689 06e8ce87

-6
-6
sound/soc/codecs/bt-sco.c
··· 78 78 bt_sco_dai, ARRAY_SIZE(bt_sco_dai)); 79 79 } 80 80 81 - static int bt_sco_remove(struct platform_device *pdev) 82 - { 83 - return 0; 84 - } 85 - 86 81 static const struct platform_device_id bt_sco_driver_ids[] = { 87 82 { 88 83 .name = "dfbmcs320", ··· 104 109 .of_match_table = of_match_ptr(bt_sco_codec_of_match), 105 110 }, 106 111 .probe = bt_sco_probe, 107 - .remove = bt_sco_remove, 108 112 .id_table = bt_sco_driver_ids, 109 113 }; 110 114