diff options
author | Bjorn Andersson <bjorn.andersson@linaro.org> | 2017-01-30 20:00:07 +0300 |
---|---|---|
committer | Bjorn Andersson <bjorn.andersson@linaro.org> | 2017-02-07 00:49:29 +0300 |
commit | 88e30752dd47f0a6398cd014af82332f1b9873ea (patch) | |
tree | e24913919f4398c6e35828a8ede67b75d4671a2c /include/linux/rpmsg | |
parent | 0abd6bdde04f3f7e9a1b76d474f3d9e804ef1867 (diff) | |
download | linux-88e30752dd47f0a6398cd014af82332f1b9873ea.tar.xz |
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>
Diffstat (limited to 'include/linux/rpmsg')
-rw-r--r-- | include/linux/rpmsg/qcom_smd.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/linux/rpmsg/qcom_smd.h b/include/linux/rpmsg/qcom_smd.h index e674b2e3074b..8ec8b6439b25 100644 --- a/include/linux/rpmsg/qcom_smd.h +++ b/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 |