rpmsg: glink: Split rpm_probe to reuse the common code
authorBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 24 Aug 2017 07:21:25 +0000 (12:51 +0530)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 29 Aug 2017 21:29:33 +0000 (14:29 -0700)
commit6799c434c27bd558e5994a515f256f70fdb19a0b
tree897c1013110b45fd57a5924157984ec78e5cb205
parente45c5dc26dfd2d524f6a82f8ab0f3cda90d67aa6
rpmsg: glink: Split rpm_probe to reuse the common code

There is quite some code common in glink_rpm_probe that can reused for
glink-smem based transport as well. So split the function and move the
code to glink_native_probe that can be used later when we add the
support for glink-smem based transport. Also reuse driver's remove as
well.

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_rpm.c