浏览代码

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: Bjorn Andersson <bjorn.andersson@linaro.org>
Bjorn Andersson 8 年之前
父节点
当前提交
88e30752dd
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. 2 4
      include/linux/rpmsg/qcom_smd.h

+ 2 - 4
include/linux/rpmsg/qcom_smd.h

@@ -18,14 +18,12 @@ static inline struct qcom_smd_edge *
 qcom_smd_register_edge(struct device *parent,
 		       struct device_node *node)
 {
-	return ERR_PTR(-ENXIO);
+	return NULL;
 }
 
 static inline int qcom_smd_unregister_edge(struct qcom_smd_edge *edge)
 {
-	/* This shouldn't be possible */
-	WARN_ON(1);
-	return -ENXIO;
+	return 0;
 }
 
 #endif