soc: qcom: apr: make remove callback of apr driver void returned
authorDawei Li <set_pte_at@outlook.com>
Fri, 6 Jan 2023 15:28:03 +0000 (23:28 +0800)
committerBjorn Andersson <andersson@kernel.org>
Fri, 6 Jan 2023 17:50:13 +0000 (11:50 -0600)
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
include/linux/soc/qcom/apr.h
sound/soc/qcom/qdsp6/q6core.c

index 23c5b30f35114df31121258a7f962c3492b052e1..be98aebcb3e19b94ef139bbe21d560b1f62e552b 100644 (file)
@@ -153,7 +153,7 @@ typedef struct apr_device gpr_device_t;
 
 struct apr_driver {
        int     (*probe)(struct apr_device *sl);
-       int     (*remove)(struct apr_device *sl);
+       void    (*remove)(struct apr_device *sl);
        int     (*callback)(struct apr_device *a,
                            struct apr_resp_pkt *d);
        int     (*gpr_callback)(struct gpr_resp_pkt *d, void *data, int op);
index 5358fefd4210bc074cf2a9ad1ef82a42e6f8e17a..49cfb32cd20917cea2fe51c4c513fcfadc2a972d 100644 (file)
@@ -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