提交 88e30752 编写于 作者: B Bjorn Andersson

rpmsg: qcom: smd: Return positively when not enabled

Remoteproc treats the error codes returned from the stubbed SMD API as
errors, but the fact that SMD is not enabled should not affect
remoteproc's ability to start the remote processors.
Signed-off-by: NBjorn Andersson <bjorn.andersson@linaro.org>
上级 0abd6bdd
...@@ -18,14 +18,12 @@ static inline struct qcom_smd_edge * ...@@ -18,14 +18,12 @@ static inline struct qcom_smd_edge *
qcom_smd_register_edge(struct device *parent, qcom_smd_register_edge(struct device *parent,
struct device_node *node) struct device_node *node)
{ {
return ERR_PTR(-ENXIO); return NULL;
} }
static inline int qcom_smd_unregister_edge(struct qcom_smd_edge *edge) static inline int qcom_smd_unregister_edge(struct qcom_smd_edge *edge)
{ {
/* This shouldn't be possible */ return 0;
WARN_ON(1);
return -ENXIO;
} }
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册