rpmsg: glink: Do a mbox_free_channel in remove
authorSricharan R <sricharan@codeaurora.org>
Thu, 24 Aug 2017 07:21:29 +0000 (12:51 +0530)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 29 Aug 2017 21:29:33 +0000 (14:29 -0700)
mbox_request_channel is done in probe, so free the channel in remove.

Acked-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
Signed-off-by: Sricharan R <sricharan@codeaurora.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/rpmsg/qcom_glink_native.c

index 94b79e8d8d4486aca44bd6be5c27ae997ae95169..21adde34725b78b83fcd2c29b346935ce81a5cf8 100644 (file)
@@ -1008,4 +1008,5 @@ void qcom_glink_native_remove(struct qcom_glink *glink)
 
        idr_destroy(&glink->lcids);
        idr_destroy(&glink->rcids);
+       mbox_free_channel(glink->mbox_chan);
 }