Skip to content

Commit

Permalink
rpmsg: glink: Export symbols from common code
Browse files Browse the repository at this point in the history
The common code needs to export the probe and remove symbols in order
for the SMEM and RPM drivers to access them when compiled as a module.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
  • Loading branch information
andersson committed Sep 1, 2017
1 parent 5f5423f commit f8ff977
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/rpmsg/qcom_glink_native.c
Original file line number Diff line number Diff line change
Expand Up @@ -1572,6 +1572,7 @@ struct qcom_glink *qcom_glink_native_probe(struct device *dev,

return glink;
}
EXPORT_SYMBOL_GPL(qcom_glink_native_probe);

static int qcom_glink_remove_device(struct device *dev, void *data)
{
Expand Down Expand Up @@ -1604,8 +1605,10 @@ void qcom_glink_native_remove(struct qcom_glink *glink)
spin_unlock_irqrestore(&glink->idr_lock, flags);
mbox_free_channel(glink->mbox_chan);
}
EXPORT_SYMBOL_GPL(qcom_glink_native_remove);

void qcom_glink_native_unregister(struct qcom_glink *glink)
{
device_unregister(glink->dev);
}
EXPORT_SYMBOL_GPL(qcom_glink_native_unregister);

0 comments on commit f8ff977

Please sign in to comment.