summaryrefslogtreecommitdiffstats
path: root/sound/soc
diff options
context:
space:
mode:
authorDawei Li <set_pte_at@outlook.com>2023-01-06 23:28:03 +0800
committerBjorn Andersson <andersson@kernel.org>2023-01-06 11:50:13 -0600
commit33ae3d0955943ac5bacfcb6911cf7cb74822bf8c (patch)
treee7895a129cf40a9df98a9c0bef948ad2f4e898e3 /sound/soc
parentf02a537357a61e7892587c0f3455f8295cc9075c (diff)
downloadlinux-33ae3d0955943ac5bacfcb6911cf7cb74822bf8c.tar.gz
linux-33ae3d0955943ac5bacfcb6911cf7cb74822bf8c.tar.bz2
linux-33ae3d0955943ac5bacfcb6911cf7cb74822bf8c.zip
soc: qcom: apr: make remove callback of apr driver void returned
Since commit fc7a6209d571 ("bus: Make remove callback return void") forces bus_type::remove be void-returned, it doesn't make much sense for any bus based driver implementing remove callbalk to return non-void to its caller. As such, change the remove function for apr bus based drivers to return void. Signed-off-by: Dawei Li <set_pte_at@outlook.com> Signed-off-by: Bjorn Andersson <andersson@kernel.org> Link: https://lore.kernel.org/r/TYCP286MB23232B7968D34DB8323B0F16CAFB9@TYCP286MB2323.JPNP286.PROD.OUTLOOK.COM
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/qcom/qdsp6/q6core.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/soc/qcom/qdsp6/q6core.c b/sound/soc/qcom/qdsp6/q6core.c
index 5358fefd4210..49cfb32cd209 100644
--- a/sound/soc/qcom/qdsp6/q6core.c
+++ b/sound/soc/qcom/qdsp6/q6core.c
@@ -339,7 +339,7 @@ static int q6core_probe(struct apr_device *adev)
return 0;
}
-static int q6core_exit(struct apr_device *adev)
+static void q6core_exit(struct apr_device *adev)
{
struct q6core *core = dev_get_drvdata(&adev->dev);
@@ -350,8 +350,6 @@ static int q6core_exit(struct apr_device *adev)
g_core = NULL;
kfree(core);
-
- return 0;
}
#ifdef CONFIG_OF