From: Sricharan R Date: Thu, 24 Aug 2017 07:21:29 +0000 (+0530) Subject: rpmsg: glink: Do a mbox_free_channel in remove X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=76cf11051446b4778e539536bbc4810a44be96d9;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git rpmsg: glink: Do a mbox_free_channel in remove mbox_request_channel is done in probe, so free the channel in remove. Acked-by: Arun Kumar Neelakantam Signed-off-by: Sricharan R Signed-off-by: Bjorn Andersson --- diff --git a/drivers/rpmsg/qcom_glink_native.c b/drivers/rpmsg/qcom_glink_native.c index 94b79e8d8d44..21adde34725b 100644 --- a/drivers/rpmsg/qcom_glink_native.c +++ b/drivers/rpmsg/qcom_glink_native.c @@ -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); }