remoteproc: rename subdev probe and remove functions
Rename functions used when subdevices are started and stopped to reflect the new naming scheme. Tested-by: Fabien Dessenne <fabien.dessenne@st.com> Signed-off-by Alex Elder <elder@linaro.org> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
This commit is contained in:

committed by
Bjorn Andersson

parent
4902676f04
commit
6f8b037308
@@ -33,7 +33,7 @@
|
||||
|
||||
static BLOCKING_NOTIFIER_HEAD(ssr_notifiers);
|
||||
|
||||
static int glink_subdev_probe(struct rproc_subdev *subdev)
|
||||
static int glink_subdev_start(struct rproc_subdev *subdev)
|
||||
{
|
||||
struct qcom_rproc_glink *glink = to_glink_subdev(subdev);
|
||||
|
||||
@@ -42,7 +42,7 @@ static int glink_subdev_probe(struct rproc_subdev *subdev)
|
||||
return PTR_ERR_OR_ZERO(glink->edge);
|
||||
}
|
||||
|
||||
static void glink_subdev_remove(struct rproc_subdev *subdev, bool crashed)
|
||||
static void glink_subdev_stop(struct rproc_subdev *subdev, bool crashed)
|
||||
{
|
||||
struct qcom_rproc_glink *glink = to_glink_subdev(subdev);
|
||||
|
||||
@@ -64,8 +64,8 @@ void qcom_add_glink_subdev(struct rproc *rproc, struct qcom_rproc_glink *glink)
|
||||
return;
|
||||
|
||||
glink->dev = dev;
|
||||
glink->subdev.start = glink_subdev_probe;
|
||||
glink->subdev.stop = glink_subdev_remove;
|
||||
glink->subdev.start = glink_subdev_start;
|
||||
glink->subdev.stop = glink_subdev_stop;
|
||||
|
||||
rproc_add_subdev(rproc, &glink->subdev);
|
||||
}
|
||||
@@ -129,7 +129,7 @@ int qcom_register_dump_segments(struct rproc *rproc,
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(qcom_register_dump_segments);
|
||||
|
||||
static int smd_subdev_probe(struct rproc_subdev *subdev)
|
||||
static int smd_subdev_start(struct rproc_subdev *subdev)
|
||||
{
|
||||
struct qcom_rproc_subdev *smd = to_smd_subdev(subdev);
|
||||
|
||||
@@ -138,7 +138,7 @@ static int smd_subdev_probe(struct rproc_subdev *subdev)
|
||||
return PTR_ERR_OR_ZERO(smd->edge);
|
||||
}
|
||||
|
||||
static void smd_subdev_remove(struct rproc_subdev *subdev, bool crashed)
|
||||
static void smd_subdev_stop(struct rproc_subdev *subdev, bool crashed)
|
||||
{
|
||||
struct qcom_rproc_subdev *smd = to_smd_subdev(subdev);
|
||||
|
||||
@@ -160,8 +160,8 @@ void qcom_add_smd_subdev(struct rproc *rproc, struct qcom_rproc_subdev *smd)
|
||||
return;
|
||||
|
||||
smd->dev = dev;
|
||||
smd->subdev.start = smd_subdev_probe;
|
||||
smd->subdev.stop = smd_subdev_remove;
|
||||
smd->subdev.start = smd_subdev_start;
|
||||
smd->subdev.stop = smd_subdev_stop;
|
||||
|
||||
rproc_add_subdev(rproc, &smd->subdev);
|
||||
}
|
||||
|
Reference in New Issue
Block a user