]> git.ipfire.org Git - people/arne_f/kernel.git/commitdiff
rpmsg: qcom: smd: Return positively when not enabled
authorBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 30 Jan 2017 17:00:07 +0000 (09:00 -0800)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 6 Feb 2017 21:49:29 +0000 (13:49 -0800)
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>
include/linux/rpmsg/qcom_smd.h

index e674b2e3074beb38b195e9409168cd81880254a2..8ec8b6439b25edb956bb06bcf116c190a46ce62c 100644 (file)
@@ -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