soc: qcom: apr: make remove callback of apr driver void returned
Subsystems (5)
PATCH v2 1/1 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.
---
v1 -> v2
- Update commit message.
--- include/linux/soc/qcom/apr.h | 2 +- sound/soc/qcom/qdsp6/q6core.c | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-)
include/linux/soc/qcom/apr.h +1 -1
@@ -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);
sound/soc/qcom/qdsp6/q6core.c +1 -3
@@ -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
Signature · 1 line
2.25.1
Quoted 9 lines · Dawei Li
Since commit
fc7a6209d571("bus: Make remove callback return void") forcesbus_type::removebe 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.
[...]
Applied, thanks!
[1/1] soc: qcom: apr: make remove callback of apr driver void returned
commit: 33ae3d0955943ac5bacfcb6911cf7cb74822bf8c
Best regards,
Signature · 1 line
Bjorn Andersson <[email protected]>